Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://159290]
zentara is thinking of moving to Mars to esacpe it all
[LanX]: Zentara eq Dr Manhatten ?
[zentara]: more like Dr. Helion3 :-)
[LanX]: Eily: though I haven't found a a reference for this one yet : Re^2: OT: Got fired this week (orange)

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2017-03-27 15:26 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.