in reply to Resetting the idle time

slloyd:

If you're using Unix, and your program is running as root, you could use something like this:

#!/usr/bin/perl -w `shutdown -r now`
I'm certain that there are similar ways to do it on Windows, Mac, etc.

</joke>

--roboticus