juanvaldez has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl open( CMD, "top -b -n1 |") || die "cannot fork: $!"; while ( <CMD> ) { if ( /^top:/ ) { print "Detected lrk4 version of top\n"; } } close( CMD );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Grabbing STDERROR
by btrott (Parson) on Nov 10, 2000 at 07:23 UTC | |
by juanvaldez (Initiate) on Nov 10, 2000 at 21:20 UTC | |
|
RE: Grabbing STDERROR
by AgentM (Curate) on Nov 10, 2000 at 07:16 UTC | |
|
Re: Grabbing STDERROR
by extremely (Priest) on Nov 10, 2000 at 06:59 UTC |