A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
Linux / UNIX
unix script for executing jar file thrice a day...
Joined: Dec 12, 2006
Jun 08, 2007 00:31:00
I want to run MasterCard.jar file on 3 different time in a day on unix system.
and i have no experience in writing unix scripts.
can anybody guide me for the same.
i have gone through one thread :
Writing unix scropt for executing jar file
and have created one file named cron.sh with the folloing script
#!/bin/sh /usr/java/j2sdk1.4.2_12/jre184.108.40.206/bin java -jar /usr/local/lib/MasterCard.jar
Am i going on right direction ??? and what else i need to do ???
and how will this cron.sh get executed ???
one thing i'm wondering in this scriot is that there is nothing mentioned like everyday when to execute jar file.
I want my jar file to be executed thrice a day (10 AM,2PM and 6 PM)
do i have to mention this thing in script ? or unix command will execute cron.sh thrice a day ?
Joined: May 29, 2004
Jun 08, 2007 00:59:00
you are partially right and partially wrong....
partially right because you wrote a small file with the bash command you want to execute
partially wrong because you didn't use the CRON command
for a clear expaination check this like FOR SURE it will help
Joined: Jun 02, 2003
Jun 08, 2007 19:15:00
... and there is a slash missing between bin and
I agree. Here's the link:
subject: unix script for executing jar file thrice a day...
Need help to Copy a File from Unix to Windows
Need help to schedule a job
making an executable shell script
Where is env.sh?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015