File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Head First Android this week in the Android forum!
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/ >> /ClarkDavid/ClarkLog.dat
30 23 * 1-12 1-5 cronscripts/ >> /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: 16901

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:
subject: crontab
It's not a secret anymore!