于 2010-12-17 9:32, Matt 写道:
I have a perl script but I want to exit it if the uptime on the server
is less then say an hour.  Any idea how I would get uptime with perl?

$ cat /proc/uptime
4205976.64 4017280.59

The first column is the host's uptime seconds.

Jeff.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to