Subject: | IPC::Session seems to connect, but won't send() |
Perl 5.6.1
Solaris 5.8
NCR 3.0.2
I'm trying to use IPC::Session to submit a perl script from Solaris to NCR unix.
Version .05 will not connect at all.
With version .03 I get connected, but then I can't get commands to go through:
The output:
# submit_remote_archive
Trying to connect to wdev15...
Connected: IPC::Session=HASH(0xf096c)
timeout on stdout at /usr/local/lib/perl5/site_perl/5.6.1/IPC/Session.pm
line 88.
The code:
#!/usr/local/bin/perl
use IPC::Session;
print "Trying to connect to REMOTEHOST...\n";
my $session = new IPC::Session("rsh REMOTEHOST");
print "Connected: $session\n";
$session->send("hostname");
print $session->stdout();
$session->send("date");
print $session->stdout();
Looks like it's blowing on $handler.
Both system have a working /bin/sh. Both systems allow rsh from each other from a ksh, so I know the .rhosts files are set up.
Any help is appreciated. I hope to use this instead of Net::Rexec.
thanks,
Mike