Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Well, the problem is that the code hangs during the call to $session->cmd. I actually have tried die("Output is $out"); , as well as writing to the Apache logs after the cmd call, but it just doesn't get there. I tried stepping through it with Komodo, but didn't have enough time today...probably try again tomorrow. The exact same sequence and user environment works as long as Mason isn't involved, and the ssh interaction gets almost to the point where the output is returned from the cmd call...
Here is what the end of the sshd debug should look like (done with the CGI::Application test)

debug3: channel 1: will not send data after close debug1: channel 1: is dead debug1: channel 1: garbage collecting debug1: channel_free: channel 1: server-session, nchannels 2 debug3: channel_free: status: The following connections are open: #0 server-session (t4 r0 i1/0 o16/0 fd 7/7) #1 server-session (t4 r1 i8/0 o128/0 fd 8/8) debug3: channel_close_fds: channel 1: r 8 w 8 e -1 Connection closed by remote host. debug1: channel_free: channel 0: server-session, nchannels 1 debug3: channel_free: status: The following connections are open: #0 server-session (t4 r0 i1/0 o16/0 fd 7/7) debug3: channel_close_fds: channel 0: r 7 w 7 e 9 debug1: session_close: session 0 pid 18607 Closing connection to 192.168.200.231 debug1: Received SIGCHLD.


In reply to Re^2: Net::SSH::Perl hangs(during cmd), but only in Mason environment by perldragon80
in thread Net::SSH::Perl hangs(during cmd), but only in Mason environment by perldragon80

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2024-03-28 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found