This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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/ >> /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: 17026

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!