>Jacek,
>   The file you want to edit is called crontab.  You should read up on it
>and cron.  You will need to add a line like the following to the crontab
>file.
>
>00 04 * * * root /sbin/shutdown -h now

Actually you want to run

        crontab -e
(e is for edit)

and copy Steve's line above over, save, and then you're done!

If you want to compute for a while and then have the machine shut down some
time later on (this has saved me from many a dispute with my wife!...) when
you log in, switch to root with su and then issue

        /sbin/shutdown -h 23:30 &

This will spawn off the shutdown command into the background, primed to
trigger at 23:30. Then, go back to work and forget about the time.

I find this is an effective way of getting three hours work done, and not
having that stretch into 5, 6, 7 hours, to the increasing irritation of my
nearest and dearest.

You will receive a warning 15, 10, 5 and 1 minute(s) before the system goes
down. It's always a lot of fun trying to squeeze in that last final command
or two in the final sixty seconds before the machi
No processes left in this runlevel.
System halted.


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to