Turnoff will not shutdown as a cron job
I am running Ubuntu 10.04 with all the latest updates. Also running a Myth backend and front end on the same machine. I installed the TurnOff scripts and from a command line it works exactly as expected. Run as a Cron job however it does not shut down the computer. The sys.log shows that when the script runs as a cron job it says mythshutdown -c returned 65024. When I immediately run mythshutdown -c -v all as a command it returns value 0 Ok to shutdown. For some strange reason TurnOff thinks it is OK to shut down when run at command line but not so when run as a cron job. Any ideas as the script works exactly as I want apart from this problem.
Thanks in advance.