http://qs1969.pair.com?node_id=1060315


in reply to Need help on tomcat restart via cronjob

Probably not a perl problem but either a sudo permission problem or an environment variable problem.

-derby

Replies are listed 'Best First'.
Re^2: Need help on tomcat restart via cronjob
by SriniK (Beadle) on Oct 30, 2013 at 10:46 UTC
    I am running the script from root user the below are the evs from the script
    HOME : /root CVS_RSH : ssh DISPLAY : :99 LESSOPEN : |/usr/bin/lesspipe.sh MAIL : /var/spool/mail/root PWD : /root LANG : en_US.UTF-8 USER : root G_BROKEN_F: 1 LOGNAME : root SHLVL : 2 HOSTNAME : ***.****.****.** JAVA : /usr/bin/ _ : /bin/env PATH : /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/b +in:/root/bin SHELL : /bin/sh HISTSIZE : 1000 HISTCONTRO: ignoredups