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...

$ssh->error and die ...
I have revised the module and can't find any place where it could be killing the perl process.
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.


In reply to Re: Net::OpenSSH killing script by salva
in thread Net::OpenSSH killing script by jaiieq

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.