I have a perl script running o.k. on unix machines and manually from root user but not from crontab on linux machine:
the problematic command is: su - $user
system("su - togui103 -c \"/home/togui103/RunEnv/scripts/tomcatkill.csh\"");
command on crontab:
23 59 * * * /home/togui103/RunEnv/scripts/tc-rotate.pl > /home/togui103/RunEnv/scripts/tc-rotate.log
please advise.