Re: Regards: grep: writing output: Broken pipe
- From: wieland@xxxxxxxxxxxxxxx (Wieland Pusch)
- Date: Mon, 28 Nov 2005 12:12:16 +0100
Hello Uthayakumar,
I guess the oracle client libraries change the $SIG{CHLD} handler.
Wednesday, November 23, 2005, 8:59:51 AM, you wrote:
UP> I am using DBI module in my perl script. And also i am using the grep
UP> utility along with awk. This utility works fine when we are not initialize
UP> the DB connection. If we initialize the DBI connection it throws the error
UP> "grep: writing output: Broken pipe"
$dbh=DBI->>connect("DBI:mysql:dbname","dbuser","dbpwd"); ### if we comment
UP> this line, works fine; uncomment this line, gives error "grep: writing
UP> output: Broken pipe"
UP> open(FH,"grep -Z '' *.gz | awk 'BEGIN {flag=0;}{if(\$1~/$uid/){print
UP> '\$1';flag=1;}else {if(flag==1){exit;}}}'|");
UP> while(<FH>) {
UP> print $_."\n";
UP> }
cu
Wieland Pusch mailto:wieland@xxxxxxxxxxxxxxx
.
- Follow-Ups:
- Re: Regards: grep: writing output: Broken pipe
- From: Tim Bunce
- Re: Regards: grep: writing output: Broken pipe
- Prev by Date: Re: DBI and cheating with array interface?
- Next by Date: Re: Regards: grep: writing output: Broken pipe
- Previous by thread: DBI and cheating with array interface?
- Next by thread: Re: Regards: grep: writing output: Broken pipe
- Index(es):