Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parsing 'ps' log files

Status
Not open for further replies.

eds0n

Technical User
Feb 13, 2007
2
NO
Hi!

I'm logging user process table information to a file every 5 seconds, using the "ps" command in Linux.

The output I get is for instance...

Tue Feb 13 11:02:33 2007 00:05:18 3 02:34:38 1 8265 TNl 3.4 3.7 beagled-helper

Where this is:
Started, time, c, elapsed, ppid, pid, stat, %cpu, %mem, command

What I want to do is for instance pick all the processes that are the same (same creation date) and print them with the latest elapsed time etc. That's one of the things I want to do amongst other..

Any tips?

Thank you

- eds0n
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top