jQuery in Action, 3rd edition
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


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>??./
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: 17410

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

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link: http://aspose.com/file-tools
subject: crontab
It's not a secret anymore!