On a unix RH8 box starting and stopping TC 5.0.18 under the root account
using the following script:
#!/bin/sh
# This script stops tomcat for (about) 1 minute, and then restarts it
# it is run at the same time as the script to backup the
# database (which is shutdown, and a file level copy made)
I don't know the cause of your problem, but personaly I use nohup to
start commands from cron :
nohup /usr/local/jakarta-tomcat-5.0.18/bin/shutdown.sh
nohup manage in good way standard input and output (you can pass
options) and keep your task running after father task die.
Hope it help.
Andre
Hi John,
In article [EMAIL PROTECTED],
Wed, 01 Sep 2004 09:01:24 +0100,
John Sidney-Woollett [EMAIL PROTECTED] wrote:
johnsw On a unix RH8 box starting and stopping TC 5.0.18 under the root account
johnsw using the following script:
[snip]
johnsw However if the script is invoked from cron, the
You might try compare results of /usr/bin/env executed from cron
and command-line.
You may need to set some environment variables, LANG for example,
to make JVM works as you expected.
You're right - when the script is run by cron the LANG environment
variable is undefined.
I will modify the