Ever wondered how long a process has been running? Did you know how to find it? Well, it’s actually quite simple and can be done with the following command:
ps aux | grep amarokapp | grep -v grep | ps -o etime `awk ‘{ print $2 }’`
Above gives:
ps aux | grep amarokapp | grep -v grep | ps -o etime `awk ‘{ print $2 }’`
ELAPSED
25:22
In [ continue reading... ]
Tag Archives: bash
How to find out how long a process has been running (elapsed time)
Command not found – openSUSE 11.1 preview
Have you ever tried running an application, only to get “command not found”. Well, that sucks and you’ve probably asked yourself “well, ummm, what package is this application part of?”.
Well wonder no more. As openSUSE 11.1 this feature has been implemented. I first saw the feature in openSUSE Beta 3. I must note, that I did an upgrade from 11.0 to Beta 2, then [ continue reading... ]





