in reply to Re: IO::Select & ssh problem
in thread IO::Select & ssh problem
The output from $! is "Illegal seek"
Am I doing something I'm not supposed to be doing? Can anyone else get this to work?
Thanks
-Craig
The error is: Can't use an undefined value as filehandle reference at ...... my @cmd = (cat => ( '/etc/passwd' )); open(IFILE, '-|', @cmd) || die "Bad ssh open"; ...
The perl version being run is: v5.6.1 built for sun4-solaris-64int
However, this code does run fine on perl 5.8
... my @cmd = (cat => ( '/etc/passwd' )); open (IFILE, '-|') || exec @cmd; ...
|
|---|