LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   query over crontab (https://www.linuxquestions.org/questions/linux-server-73/query-over-crontab-822782/)

rohit khare 07-29-2010 03:17 AM

query over crontab
 
how to schedule shutdown every day using crontab

aizkorri 07-29-2010 03:55 AM

hi,

do you access cron via gui? or console? which distribution?

anyways the line you should add should be
"shutdown now" and configure your cron task to the time you would like it to be run.
for the crontab file this line:

<minutes> <hour> * * * shutdown now


All times are GMT -5. The time now is 09:01 AM.