search for: do_sync_cmd

Displaying 1 result from an estimated 1 matches for "do_sync_cmd".

2008 Oct 20
0
CGI and NET::SSH in the same script problems
...es anyone know why you can''t call net/ssh from a CGI or how to debug this in a browser environment? ----------------------------- ruby cgi script --------------------------------- require ''cgi'' require ''rubygems'' require ''net/ssh'' def do_sync_cmd( session, command ) session.open_channel do |channel| channel.env("PATH", "/usr/pbs/bin:/acct/uzer/test/bin") channel.exec("#{command}") do |ch, success| abort @myString.concat("could not execute #{command}") unless success channel.on_data...