Perl Monk, Perl Meditation | |
PerlMonks |
Re: Uptime with Win32::GetTickCount()by guha (Priest) |
on Dec 07, 2002 at 15:48 UTC ( [id://218259]=note: print w/replies, xml ) | Need Help?? |
In my previous post in this thread I assumed from your code snippet that you wanted the script to run more or less like a daemon and that you you would start the script in the boot process. Then brother BrowserUk objected that this was not necessarily the case. For that case all use of Win32::GetTickCount won't work either, since you don't know how many 49 day wraps that has occurred already when you start the script. On XP however I suggest the following solution, which is based on the fact that the file C:\windows\bootstat.dat is touched at bootup.
On NT or Win2k systems however the said file does not exist but then the program Uptime from Microsoft can be useful.
In Section
Seekers of Perl Wisdom
|
|