I am trying to setup a cron job but cannot get it to run at all. I have a shell script I want to run and like many others, I can get it to run from the command line but not through cron. I have tried all suggestions I can find but they don't seem to make any difference.
The job I have is:
23 15 * * * /home/sde/sdecompress/sde_shutdown.sh > /home/sde/sdecompress/sde_sh
utdown.log
Running sde_shutdown.sh on its own is fine, but not that script when its in the cron job. I don't even get the logfile or mail, and I was trying with an error log (i.e. 2>), but still did not get anything. I have a line in my script to echo the date but it doesn't even return that:
#!/bin/ksh
#
# Description:
#
# set -x
#
.profile
echo this is a test
sdemon -o shutdown -p sde -N
The permissions are available (I did a chmod 777 to ensure that) but am at a loss as to how to get it to run. Does anybody know what I am doing wrong?!
My system details are:
AIX 5L Version 5.3 - Unix
There is a cron.deny, without any entries in it.