Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
crontab -l lists a crontab. Here's one that sets the time hourly
# m h dom mon dow command
37 * * * * /usr/sbin/ntpdate dual
Replace the command with /sbin/shutdown -h now and change the hour and minute field with the time you want to shutdown. If your user has not the privilege of shutting down, you may have to be root to create the entry.
Also, cron usually has a minimal env, so the default PATH may not include the cmds you want. Its always advisable in cron jobs to use full paths to all cmds & files used.
As above, show us the script content.