Possible Duplicate:
How to check how a long a program has been running?

I am interested in doing this purely using bash.

marked as duplicate by Michael Mrozek Aug 23 '11 at 3:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


ps can fit your needs:

ps -eo pid,command,etime

To get information for a specific process:

ps -o command,etime -p PID

Not the answer you're looking for? Browse other questions tagged or ask your own question.