Friday, April 8, 2011

example to shutdown Windows XP after certain time (in the example below 10 min) interval using shutdown command

for (( i = 1; i <= 10; i++ )) ; do
sleep 60
done
shutdown -s

2 comments: