1. Which platform and crond are you on? Is the crontab format correct for
your environment?
00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh
vs. 00 22 * * * /PATH/TO/JAKARTA/bin/shutdown.sh
2. You may want to see if shutdown.sh works as root.
3. You can also try
00 22 * * * /PATH/TO/JAKARTA/bin/shutdown.sh >> logfile 2>&1
or whatever works in your shell, and post caught errors.
4. If you're in Fedora, you can put these 2 lines in a script (say,
tomcat1.sh) and
00 22 * * * root /YOUR/PATH/tomcat1.sh
su - tomcat /PATH/TO/JAKARTA/bin/setclasspath.sh
su - tomcat /PATH/TO/JAKARTA/bin/startup.sh
HTH.
Regards,
Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education
Texas A&M University
------------ Original Message ------------
Hi
I'd like to stop and start my tomcat using cron so I added this in the
root's crontab and /etc/crontab :
00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh
02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh
but it does work :s
Any got ideas ???
Thk
Cedric
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]