Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Giving status of a file..

by jreades (Friar)
on Apr 15, 2002 at 18:42 UTC ( [id://159290]=note: print w/replies, xml ) Need Help??


in reply to Giving status of a file..

Is there any reason you wouldn't want to do this:

my @processes = (); open (PROCESSES, "ps -fu $user|") or die ("Couldn't open process list: + $!"); while ($process = <PROCESSES>) { chomp($process); my @process = split(/\s+/, $process, 8); push @processes, \@process; } close PROCESSES;

Just curious

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://159290]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-19 09:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found