Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: Net::OpenSSH in a mod_perl handler

by eserte (Deacon)
on Mar 24, 2010 at 17:19 UTC ( #830618=note: print w/replies, xml ) Need Help??

in reply to Re: Net::OpenSSH in a mod_perl handler
in thread Net::OpenSSH in a mod_perl handler

This got me one step further: [Wed Mar 24 18:16:06 2010] [error] [client] child process STDOUT is not a real system file handle at /tmp/lib/test/ line 40\n

After setting the default_stdout_fh option using the same schema the $ssh->system command works, at least with mod_perl 2. $ssh->capture still does not work; there is no error, but also nothing is captured.

Replies are listed 'Best First'.
Re^3: Net::OpenSSH in a mod_perl handler
by salva (Abbot) on Mar 25, 2010 at 00:04 UTC
    The issue was related to STDIN and STDOUT not being attached to file descriptors 0 and 1 respectively under mod_perl.

    Can you try version 0.46_01 that I have just uploaded to CPAN?

      Excellent! This fixes the problem, at least with mod_perl 1 (mod_perl 2 not tested).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://830618]
[marto]: good morning all

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2017-11-21 11:35 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (297 votes). Check out past polls.