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 02:17 AM

query over crontab
 
how to schedule shutdown every day using crontab

aizkorri 07-29-2010 02: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 07:50 AM.