Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Too many pipes?

by Eliya (Vicar)
on Feb 10, 2012 at 18:32 UTC ( [id://953093]=note: print w/replies, xml ) Need Help??


in reply to Too many pipes?

Presumably a buffering issue...  (i.e., grep doesn't output anything before its buffer has filled up).

If your grep supports the option, you might want to try

... | grep --line-buffered ...

(See also Re^2: Reading from a command pipe )

Another solution would be to implement the grepping in Perl, and do away with the system grep altogether.

Replies are listed 'Best First'.
Re^2: Too many pipes?
by kc6ovd (Acolyte) on Feb 10, 2012 at 22:02 UTC
    Eliya, You hit it. Unfortunatly my grep does not support the --line-buffered option. I think letting perl do it might be the way to go. I will have to check to see how much I will have to change in this code. Thanks for the suggestions. -Kevin

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2024-04-16 09:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found