Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2016-10-23 23:29 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (302 votes). Check out past polls.