Originally Posted by deelinux
I have set up my crontab and whilst Im logged in and it works (It runs my shell script), however when Im not logged in, the script does not run.
The script runs, but maybe it doesn't work as expected since it lacks something which is set upon login. Maybe does it requires an active DISPLAY?
As previously suggested check the logs to find out, e.g. /var/log/cron or /var/log/messages. Also check the root's mailbox using the mail
command, since standard output and standard error (not redirected to a file) are sent there by the cron daemon (specifically to the crontab owner's mailbox).