Managing PS data was -Re: What would be the best data structure to keep these values

2003-12-16 Thread drieux
On Dec 16, 2003, at 7:13 AM, Hemond, Steve wrote: [..] I first trap the results by splitting the results in scalar values such as $uid $pid $ppid $stime, etc... I would like, for each line returned, to hold these values in an array, so that, for each uid, I could return its corresponding pid,

Re: What would be the best data structure to keep these values

2003-12-16 Thread drieux
On Dec 16, 2003, at 9:32 AM, R. Joseph Newton wrote: [..] I am assuming here that the ppid is a sub-process id. Basically, use any field that constitutes a GUID as the key for each child hash. [..] other way around, ppid - parent process id. Given a Pid the system needs to know whom the Parent

Re: What would be the best data structure to keep these values

2003-12-16 Thread R. Joseph Newton
"Hemond, Steve" wrote: > Hi people, > > I want trap the results of 'ps -ef' command. > > I first trap the results by splitting the results in scalar values such as $uid $pid > $ppid $stime, etc... > > I would like, for each line returned, to hold these values in an array, so that, for > each uid

Re: What would be the best data structure to keep these values

2003-12-16 Thread drieux
On Dec 16, 2003, at 7:13 AM, Hemond, Steve wrote: [..] I first trap the results by splitting the results in scalar values such as $uid $pid $ppid $stime, etc... I would like, for each line returned, to hold these values in an array, so that, for each uid, I could return its corresponding pid, p

Re: What would be the best data structure to keep these values

2003-12-16 Thread Wiggins d Anconia
> Hi people, > > I want trap the results of 'ps -ef' command. > > I first trap the results by splitting the results in scalar values such as $uid $pid $ppid $stime, etc... > > I would like, for each line returned, to hold these values in an array, so that, for each uid, I could return its corr

Re: What would be the best data structure to keep these values

2003-12-16 Thread Rob Dixon
Steve Hemond wrote: > > I want trap the results of 'ps -ef' command. > > I first trap the results by splitting the results in scalar values such as $uid $pid > $ppid $stime, etc... > > I would like, for each line returned, to hold these values in an array, so that, for > each uid, I could > retur

Re: What would be the best data structure to keep these values

2003-12-16 Thread Ricardo SIGNES
* "Hemond, Steve" <[EMAIL PROTECTED]> [2003-12-16T10:13:31] > I want trap the results of 'ps -ef' command. > > I first trap the results by splitting the results in scalar values > such as $uid $pid $ppid $stime, etc... > > I would like, for each line returned, to hold these values in an > array,