in reply to Perl CGI SSH

Why do you need to "keep it open"? Just issue your ssh command and read the output ... someone wants to execute a second command via ssh just call ssh again ... you don't need to keep the connection open.

Plankton: 1% Evil, 99% Hot Gas.

Replies are listed 'Best First'.
Re: Re: Perl CGI SSH
by biosysadmin (Deacon) on May 02, 2004 at 06:38 UTC
    That's definitely a good idea, and I think that only bad part about it would be overhead. Depending on your situation, re-opening SSH connections may not be an acceptable amount of load for the server.

    On the other hand, closing the SSH connection would make your job a lot easier, as you wouldn't have to worry about sessions at all. It's definitely at least worth looking in to, coding your app without sessions would be a simple matter and would be a good development step in coding your app with sessions.