On Mon, 2003-06-16 at 08:54, C Falconer wrote: > On Sun, 2003-06-15 at 22:59, Dave Garlick wrote: > > I was wanting to use Ktimer to auto shut down (such as after a long download > > etc.) can anyone help with the command to run??? > > wget -c http://www.foo.org/file.tgz ; shutdown -rft 3 now Use 'shutdown -hft 3 now' to halt rather than reboot
> (most distros need to run shutdown as root though) True but if you add the follwoing line to /etc/sudoers using visudo you should be in good shape. %users localhost= NOPASSWD: /sbin/shutdown -hft 3 now users = name of group allowed to execute the shutdown command localhost = your computer's name NOPASSWD: = means you won't have to stick around to enter your password. HTH :> -- Rob Stockley Manawatu New Zealand An avid user of RedHat Linux Visit http://www.redhat.com
