Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Answer: How do i split the output of ps -aef

by AltBlue (Chaplain)
on Jan 27, 2001 at 02:56 UTC ( #54662=categorized answer: print w/replies, xml ) Need Help??

Q&A > regular expressions > How do i split the output of ps -aef - Answer contributed by AltBlue

maybe you'd like to take a look to Proc::ProcessTable.

Note from sintadil: Proc::ProcessTable is platform-dependent and -- at least on the systems with which I'm familiar -- it depends on the existence of a procfs. procfs is strongly deprecated in some Unix versions and doesn't even exist by default in some.

  • Comment on Answer: How do i split the output of ps -aef
Replies are listed 'Best First'.
Re: Answer: How do i split the output of ps -aef
by sintadil (Pilgrim) on Sep 15, 2004 at 02:41 UTC

    Proc::ProcessTable is platform-dependent and -- at least on the systems with which I'm familiar -- it depends on the existence of a procfs. procfs is strongly deprecated in some Unix versions and doesn't even exist by default in some.

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[Lady_Aleena]: Your Mother, how would that work? I'm having a hard time understanding the pod.
[Your Mother]: $dir->chidren, grep {} $file->slurp &c &c. :P
[Your Mother]: Stick with what you know. Or post a SOPW and if it's not complicated I guarantee someone will answer; me if it's straightforward and no one else gets it better first.
[1nickt]: ++YourMother (Grammar Vigilante of Bristol)
[Lady_Aleena]: Um, how does grep do multiline? print "$file:$_" if grep { /get_(array|hash| data)\(.+\)/ } $_; only returns the same 18 lines the command line grep does.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2017-05-23 19:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?