drfunk2458 has asked for the wisdom of the Perl Monks concerning the following question:
The shell script takes about 4 minutes to run
code snippet:
sub run_load { push @LOG, "Executing Shell script: > $rfile <\n"; my $chan = $ssh2->channel(); #$ssh2->debug(1); $chan->shell(); print $chan "$path/../{some_shell_script.sh}\n"; select(undef,undef,undef,20.2); my ($len,$buf); while ($len = $chan->read($buf,512) > 0) { push @LOG, "EXEC_LINE : $buf"; print "EXEC_LINE : $buf" if $dbug; } $chan->close; }
Thanks,
Mark
Edit: g0n - code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SSH2::Channel question
by talexb (Chancellor) on Nov 06, 2007 at 18:18 UTC | |
by drfunk2458 (Initiate) on Nov 06, 2007 at 20:46 UTC | |
|
Re: Net::SSH2::Channel question
by zentara (Cardinal) on Nov 07, 2007 at 13:40 UTC | |
by drfunk2458 (Initiate) on Nov 07, 2007 at 16:20 UTC | |
by zentara (Cardinal) on Nov 07, 2007 at 21:16 UTC | |
|
Re: Net::SSH2::Channel question
by cmv (Chaplain) on Nov 07, 2007 at 01:57 UTC | |
by drfunk2458 (Initiate) on Nov 07, 2007 at 16:14 UTC | |
by cmv (Chaplain) on Nov 07, 2007 at 22:49 UTC |