in reply to Net::OpenSSH killing script
Randomly, the Net::OpenSSH module will puke and kill the script (Killed by Signal 1).Are you sure that the script is being killed? this message is usually generated by the ssh master process.
Maybe you have in your code something similar to...
I have revised the module and can't find any place where it could be killing the perl process.$ssh->error and die ...
Use of unitialized value $check in pattern match (m//) at /usr/local/l +ib/perl5/site_perl/5.12.2/Net/OpenSSH.pm line 662
This is caused by a harmless bug on the module, it will be solved for the next development release (BTW, I am Net::OpenSSH author).
If anymore information is needed, please let me know and I'll post more details as needed
Add the following line at the beginning of your script:
$Net::OpenSSH::debug = 5;
restart it, wait for it to fail and post here the generated debugging information.
Include also the script source code, send it to me by email if you don't want to post it here.
Finally, a capture of the process with dtrace may also help, though it will contain sensible information as SSH keys or passwords. You should revise it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::OpenSSH killing script
by jaiieq (Novice) on Feb 02, 2011 at 18:02 UTC | |
by salva (Canon) on Feb 03, 2011 at 11:17 UTC | |
by jaiieq (Novice) on Feb 07, 2011 at 15:09 UTC |