two way I/O
Keary Suska
aksuska at webflyer.com
Thu Jul 5 18:32:01 CDT 2001
What you want is a bi-directional pipe, which Perl can't do, but there are
work arounds. perldoc perlipc or go to http://www.perldoc.com for
recommendations. I have never tried it myself.
-K
> From: "John Hundley" <johnh at fgm.com>
> Date: Thu, 5 Jul 2001 17:07:12 -0600
> To: "Pikes Peak PM's" <pikes-peak-pm-list at pm.org>
> Subject: two way I/O
>
> Hi,
> What would be the best way to send my stdout from sqlplus to a log file
> given the following code?
>
> $cmd1 = "| sqlplus user/password at instance";
> $cmd2 = "\@myDDL.sql"; #this sends a DDL file to sqlplus to load, sqlplus
> spits out a bunch of stuff I want to save
> $pid = open(SQLProcess, $cmd1)or die "Error msg";
> print SQLProcess "$cmd2";
> close SQLProcess;
>
> Hope this makes sense.
> Thanks,
> John
>
>
More information about the Pikes-peak-pm
mailing list