wood burning stoves*
The moose likes Linux / UNIX and the fly likes crontab Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "crontab" Watch "crontab" New topic
Author

crontab

divya madala
Ranch Hand

Joined: Jan 10, 2001
Posts: 61
I'm trying to run two programs every night, one at 10:30 and the other at 11:30.
30 22 * 1-12 1-5 /cronscripts/run_clark.sh >> /ClarkDavid/ClarkLog.dat
30 23 * 1-12 1-5 cronscripts/run_mark.sh >> /MarkDavis/MarkLog.dat

Each of my shells have just the java command as below
java <filename>
Now my question is how do I know that both the programs will run in the night one after the other?
Is everything OK with the above set up?
Please help me.
This's the first time ever I'm trying to set the crons and shells?!???!111>??./
Thanks,
Divya
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
Just look at the timestamp on your log file. It should tell you what time it ran.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15957
    
  19

Also there's usually a cron log. And often the output of cron jobs gets emailed somewhere (like to root)


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: crontab
 
Similar Threads
Newbie Question: setting up server and DB
declaring the shell variable
Error 500 and also getting an ISAPI error.
General Questions about java
java.io.FileNotFoundException JspServlet.service