This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 15949
    
  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.
 
Don't get me started about those stupid light bulbs.
 
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