Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'See how long a given process has been running' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
See how long a given process has been running
Authored by: ehemmete on Nov 28, '12 09:01:51AM
Instead of a separate shell script to do that you could make an alias. If you don't already have one, create ~/.profile (or ~/.bash_profile or ...) and add
 alias psup='ps -ax -o etime,command -c | grep' 
Then open a new terminal window and you can use
psup AppleVNCServer
or whatever. No worries about $PATH this way. Not trying to say a shell script is a bad idea, just another option.

[ Reply to This | # ]