If you're using Unix, and your program is running as root, you could use something like this:
I'm certain that there are similar ways to do it on Windows, Mac, etc.#!/usr/bin/perl -w `shutdown -r now`
</joke>
--roboticus
In reply to Re: Resetting the idle time
by roboticus
in thread Resetting the idle time
by slloyd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |