[unix-pc.general] shutdown via crontab?

dsueme@chinet.UUCP (dave sueme) (09/06/88)

Can a crontab entry be devised so that smgr will shut down
a 7300?

My attempts to put /etc/shutdown in chrontab are failing probably
because the messages about the phone line shutdown and parking the
disc drive heads aren't getting a response... the messages themselves
are sent to /usr/adm/cronlog - window and all.  A couple of extra "%"
delimiters did not help (placed in the crontab entry).

Advice solicited.

================================================================================
...???!chinet!penl0p!dsueme                       David M. Sueme  

                                                  Attorney at Law
                                                  911 Washington, 2N
                                                  Evanston, IL  60202
                                                  (312) 869-1824 (voice)

Philosophers are violent and aggressive persons who, having no army at their
disposal, bring the world into subjection to themselves by means of locking
it up in a system. (Robert Musil)

jcs@tarkus.UUCP (John C. Sucilla) (09/07/88)

In article <6512@chinet.UUCP> dsueme@chinet.UUCP (dave sueme) writes:
>Can a crontab entry be devised so that smgr will shut down a 7300?

Don't see why not.

>My attempts to put /etc/shutdown in chrontab are failing probably

Dave,
Try putting this string in your crontab:
/bin/su root -c "/usr/lib/lpshut > /dev/null 2> /dev/null;sync;init s;sleep 1"
-- 
John "C". Sucilla,  A silicon based life form.
       {att,chinet,ddsw1}!tarkus!jcs
  You have a better idea? Now's the time..