> qx(/usr/bin/ssh lms
$host $lic_quorum_cmd); #
> Hangs on this line, doesn't terminate
> qx(/usr/bin/scp ms
$host:/tmp/<file name> /tmp);
> # never gets to this line
try this:
qx(/usr/bin/ssh -f lms
$host "$lic_quorum_cmd &");
sleep 10; # length of time it takes to create file
qx(/usr/bin/scp ms
$host:/tmp/<file name> /tmp);
+Dave
--- On Tue, 3/25/08, Dukelow, Don < dukelow%40hp.com">dukelow
hp.com> wrote:
> From: Dukelow, Don < dukelow%40hp.com">dukelow
hp.com>
> Subject: [PBML] Still having problems running Perl scripts from Oracle
> To: " perl-beginner%40yahoogroups.com">perl-beginner
yahoogroups.com" < perl-beginner%40yahoogroups.com">perl-beginner
yahoogroups.com>
> Date: Tuesday, March 25, 2008, 10:17 AM
> I've sent this out before and had some good ideas that
> helped but still having problems. When I run my Perl
> script on command line it work s fine, but when I run it
> out of the Oracle scheduler the process hangs.
> First Oracle doesn't make a good shell to run out
> of. It has very few environment variable to pass to Perl.
> So I ran Perl manually and dumped the %ENV hash to a file
> and now I used that file to source in the environment
> variables to the %ENV hash each time I run the script.
> Plus just to make sure I give absolute path names to all
> UNIX commands I run in Perl.
> Oracle doesn't like any redirects of any kind or
> data feed back through a pipe to Perl. So the Perl program
> I run on the remote UNIX server, I have it put all its
> output to a file with the idea of copy the file back when
> it's done. The problem is that the remote script works
> and makes the file, but it never terminates. So the next
> command to copy back the file never happens. The Oracle
> scheduler times out after awhile and I have to kill the
> processes by hand.
>
>
> qx(/usr/bin/ssh lms
$host $lic_quorum_cmd); #
> Hangs on this line, doesn't terminate
> qx(/usr/bin/scp ms
$host:/tmp/<file name> /tmp);
> # never gets to this line
>
> I'm looking into getting a Perl SSH module put on
> system but I don't have control of this process. I can
> only request that it be installed.
>
> Does anyone else have any other ideas to get this to
> work?
> -----
> Don Dukelow
> HP License Team
> Hewlett-Packard Company
> Tel: 810-728-3388
> e-mail: dukelow%40hp.com">dukelow
hp.com
>
> ------------------------------------
>
> Unsubscribing info is here:
> http://help.yahoo.com/help/us/groups/groups-32.htmlYahoo!
> Groups Links
>
>
>
.