using ps with the u option and custom formatting
This should be trivial, but it's defeated me completely
I want to combine the u option with custom formating, specifically I have a script that I'm running called doPingY, Code:
ps aux | grep doPingY | grep -v grep Code:
ps -eo "%c %t" Code:
ps -euo "%c %t" Any advise would be most appreciated!! |
u requires you to specify a user on the command line. That means for it to work it has to be followed by a user name rather than other flags. Similarly o must be followed by options rather than other flags.
You can still do it but have to separate your flags: ps -eu <username> -o "%c %t" |
All times are GMT -5. The time now is 08:40 PM. |