Reboot UNIXPC from via cron

John B. Milton jbm at uncle.UUCP
Wed May 25 13:54:21 AEST 1988


In article <2597 at mibte.UUCP> twh at mibte.UUCP (Tim Hitchcock) writes:
>> Posted for a friend.
>
>Could you provide a method for be-booting a UNIX PC via a crontab entry or
>some other means ? I've been told that the normal method using crontab will
>not work because of the program /etc/smgr, which performs the functions
>handled by crontab in other systems. Is this true ? Is there some way to
>use smgr to reboot the system at night ?

How about this one:
0 4 * * * /bin/su root % /etc/reboot

It will, of course,

 #    #   ####    #####
 ##   #  #    #     #
 # #  #  #    #     #
 #  # #  #    #     #
 #   ##  #    #     #
 #    #   ####      #

flush the disk buffers or do anything else nice :)

John

P.S. If you are so stupid as to actually do this, don't [bf]lame me
-- 
John Bly Milton IV, jbm at uncle.UUCP, {ihnp4|osu-cis}!n8emr!uncle!jbm
home: (614) 294-4823, work: (614) 459-7641; talk to me about fractals



More information about the Comp.sys.att mailing list