You are here

How long has a program been running ?

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: 
topical-homopterousif you are reading this, don't click it as it will mark you as a spammer
if you are reading this, don't click it as it will mark you as a spammer