How long has a program been running ?

Submitted by Falken on
I came up with a handy answer on the ColdFusion mailing list this week, when someone wanted to know how long their ColdFusion server had been running on a Linux server.
The answer is generic, and should work for just about any program on most *nixs:

# ps -e -o lstart -o cmd|grep cold
Wed Jul 19 16:14:28 2006 /opt/coldfusionmx7/bin/cfmx7 -jar cfusion.jar -autorestart -start coldfusion

Sections