I have two piping block of codes, one is piping output from Oracle SQL Plus, and one from Oracle Exporting (exp command). The Exp doesn't work, though same syntax!
Anyone see anything wrong??-
didn't get executed at all!
and output is dump to terminal!! Wassup?? I do have the | here!
Anyone see anything wrong??-
Code:
$expCmd = "exp userID=dba/sql file=" . $exportFile . " compress=N |";
open (EXP,$expCmd)
or logError ("Attempted to run ".$expCmd . "-Failed: $!\n");
while (<EXP>)
{
$outputStr .= $_;
logDebug("-".$outputStr);
}
close EXP;
logDebug("-".$outputStr)
and output is dump to terminal!! Wassup?? I do have the | here!