On 14:56:49 Oct 04, ravi vivek wrote: > Hi Sir, > > I want to set the *server shutdown in a particular time > automatically*.So which option in the* crontab* command will be used to do > that.pls reply with a example to shutdown the server in *automatically ( > daily )*. > > For example : > > If i want to shutdown the server automatically in the time 2:45 pm > means what i have to do so..Please suggest me .. > >
This is very easily done with the at(1) command. For instance if you wish to shutdown at 2:45 am once, then # at 02:45 <ENTER> shutdown -hP now <Ctrl-D> < ...output from at snipped...> # What I showed within <> markers are the key presses that you have to manually do. ;) Now if you wish to do it daily then crontab -e will suit you fine. 45 02 * * * /sbin/poweroff of some such line in crontab will do fine. Best, Girish _______________________________________________ To unsubscribe, email [EMAIL PROTECTED] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
