Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: IO::Select & ssh problem

by cmv (Chaplain)
on Sep 18, 2009 at 18:52 UTC ( #796179=note: print w/ replies, xml ) Need Help??


in reply to Re: IO::Select & ssh problem
in thread IO::Select & ssh problem

ikegami++ Thanks for your response.

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

Update:

Also, I'm also seeing an error when I run the following code:
... my @cmd = (cat => ( '/etc/passwd' )); open(IFILE, '-|', @cmd) || die "Bad ssh open"; ...
The error is: Can't use an undefined value as filehandle reference at ...

The perl version being run is: v5.6.1 built for sun4-solaris-64int

However, this code does run fine on perl 5.8

Update 2:

However, this seems to work:
... my @cmd = (cat => ( '/etc/passwd' )); open (IFILE, '-|') || exec @cmd; ...


Comment on Re^2: IO::Select & ssh problem
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://796179]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2015-07-05 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (61 votes), past polls