# cd /etc # co -l motd (this may not work, in which case you can ignore it) # vi motd - add something like: March 22, 2005 ai0 will be shutdown at 4:30am Wednesday, March 23rd, for a planned power outage in DC. # ci -u motd (then this won't work either)
- set the VISUAL variable for your shell. In bash/sh, it can be done like this: # bash # VISUAL=vi # export VISUAL In tcsh, it can be done like this: # tcsh # setenv VISUAL 'vi' # crontab -e - add lines to the end like: ### Temporary additon to handle scheduled power outage (lfolland 2005/03/20) 0 3 23 3 * /usr/sbin/shutdown -y -i5 "Scheduled Power Outage March 23, 2005 at 3am"
### Temporary additon to handle scheduled power outage (lfolland 2005/03/20) 0 3 23 3 * cd /; /etc/shutdown -y -g300 -i0 -p
-- LawrenceFolland - 22 Mar 2005