Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Giving status of a file..

by jreades (Friar)
on Apr 15, 2002 at 18:42 UTC ( #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


Comment on Re: Giving status of a file..
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2015-07-07 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (90 votes), past polls