On Thursday, July 18, 2002, at 02:26 , Hughes, James wrote:
> Hi there perl people of the world. I was wondering if anyone had a way to > assign the process list from Unix to an array using perl internals, not > the > old " @PSINFO=`ps -ef`; " system call. you will probably want to a) opt into a CPAN style solution such as http://search.cpan.org/search?module=Proc::ProcessTable b) roll your own module of some sort.... amongst the tricks I have had fun with were things like http://www.wetware.com/drieux/pbl/Sys/psTree.txt and http://www.wetware.com/drieux/pbl/Sys/psGrovellor.txt or http://www.wetware.com/drieux/CS/Proj/PID/ You will forgive my limited options, I have access to only linux, darwin and solaris in the house.... c) you may also want to think about what You REALLY want out of the process table - and start understanding what the command line options for 'ps' on AIX are that you really find useful. many allow for ps -p $pid to get information about a given process id that you want to verify, some of them have implemented various 'output' ordering formats - which you can find useful.... some versions have ps -t $tty that allow you to get all process id information based upon terminal.... so you may want to sort through "so what were the filters I have used on this...." as well as whether you need to make your solution 'portable for all unix variants' - or local to your specific brand.... HTH ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]