How to get a process uptime under different OS?
Under Linux I can get a process’s uptime in seconds with:
Under Linux I can get a process’s uptime in seconds with:
Is there a command I can type in a terminal that will tell me the last time a machine was rebooted?
Background : I need to receive an alert when my server is down. When the server is down, maybe the Sysload collector will not be able to send any alert. To receive an alert when the server is down, I have an external source (server) to detect it.
I have a 1 core CPU installed on my PC. Sometimes, uptime shows load >1. How is this possible and what does this mean?
I want to display /proc/uptime in well format as: