Displaying 2 results from an estimated 2 matches for "on_extended_data".
2008 Oct 20
0
CGI and NET::SSH in the same script problems
..., success|
abort @myString.concat("could not execute #{command}") unless
success
channel.on_data do |ch, data|
@myString.concat("cmd=>[#{command}] got stdout: \n#{data}")
channel.send_data "something for stdin\n"
end
channel.on_extended_data do |ch, type, data|
@myString.concat("cmd=>[#{command}] stderr: \n#{data}")
end
channel.on_close do |ch|
@myString.concat("cmd=>[#{command}] closing!\n\n")
end
end
end
session.loop
end
@myString = "XXX"
Net::SSH.start...
2006 Aug 16
7
Forward of moderated message
OK I know whats happening. Your while loop completes and calls kill
on the worker before your task_progress controller method ever gets
called> So the worker is deleted and when you try to access it from
rails you get an error because there is no longer a worker at that
job key. The kill method is meant to be used within a worker that you
fire and forget. If you want to get the