lolaferrari
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"
echo "$hostname" >> "$outfile"
ps -eo pid,user,comm --no-headers >> "$outfile"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you!
ASKER