Re: this is basically a regex question; processing 'ps'

2001-08-31 Thread smoot
> [EMAIL PROTECTED] said: > Basically, what I want to do here is catch the output from ps. The ultimate > goal is to find processes meeting certain criteria (not yet detailed) and > kill them. ps output varies by OS and depends on the flags you give it. Also I have found some fields are empty

this is basically a regex question; processing 'ps'

2001-08-31 Thread GoodleafJ
Basically, what I want to do here is catch the output from ps. The ultimate goal is to find processes meeting certain criteria (not yet detailed) and kill them. One of the things I'll want to do is find out how long a process has been running, so essentially I'm trying to extract the date from ps