Link to home
Start Free TrialLog in
Avatar of lolaferrari
lolaferrariFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Unix process listing into CSV format

I'd like to output the userid, process and pid running on a linux server and output this into a CSV file where i can see the process listing for each server. I have to run this command on hundreds of servers so I'm wondering if there is a better way to do it than the way I'm doing it below?

echo "$hostname" >> "$outfile"
ps -eo pid,user,comm --no-headers >> "$outfile"
ASKER CERTIFIED SOLUTION
Avatar of Steven Vona
Steven Vona
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lolaferrari

ASKER

Thank you very much!
thank you!