Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

I am interested in doing this purely using bash.

share|improve this question
add comment

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.

1 Answer

up vote 1 down vote accepted

ps can fit your needs:

ps -eo pid,command,etime

To get information for a specific process:

ps -o command,etime -p PID
share|improve this answer
add comment

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