Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Parsing 'ps' output

by themage (Friar)
on Dec 28, 2006 at 11:26 UTC ( #592017=note: print w/replies, xml ) Need Help??

in reply to Parsing 'ps' output

Hi vineet2004,

You would not be here asking us it it was correct, would you? I think your only mistake is in this line:
You are missing the dot (.) before the asterisk. It should be:
I don't see any other problem, and it should do what you want... I guess.

Replies are listed 'Best First'.
Re^2: Parsing 'ps' output
by vineet2004 on Dec 28, 2006 at 11:43 UTC
    hey monks...thanks for the help i have one more do i accept this STDOUT $var into the shell script.....i know its not related to perl probably.....but i think u giys would know my code goes like this.....actually this isnt mine...a monk wrote it for me
    perl -ne 'while (my $var= <STDIN>) { $run = "awk -f work _5messages.awk ".$var; `$run`; }'
    the error is :
    awk: fatal: can't open source file `work' for reading (No such file or + directory

      Oh, you mean in "Re: shell prob?" Yeah, you have an extra space there. You didn't type what he typed...


      there should not be any spaces after 'work' in the code ;)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://592017]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2017-11-24 23:01 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (354 votes). Check out past polls.