Re: Regards: grep: writing output: Broken pipe



On Mon, Nov 28, 2005 at 12:12:16PM +0100, Wieland Pusch wrote:
> Hello Uthayakumar,
>
> I guess the oracle client libraries change the $SIG{CHLD} handler.

While the oracle client libraries do do that, the mysql client librarary
(being used here) doesn't - as far as I know.

Tim.

> 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
>
.



Relevant Pages

  • Oracle, Solaris 8 and ensuring dynamic linking
    ... In the past we've "suffered" with having to statically link the Ingres client libraries into each and every Executable, which I'd like to avoid, going forward. ... What compiler /linker options do we need to specify to use to ensure that the Oracle client libraries are loaded /dynamically/? ...
    (comp.databases.oracle.tools)
  • Re: loading oratcl from starkit
    ... although I can't see any difference between the computers. ... Just to rule out the obvious problems: Are the Oracle client libraries ... in addition to oratcl for it to work. ...
    (comp.lang.tcl)
  • Re: DBD::Oracle and oracle client versions
    ... I'm having some weird problems involving linked databases that MAY be ... related to the oracle client libraries version; ...
    (perl.dbi.users)