in reply to 255: perl compilation error code and ssh cannot connect code

Can you please post the first 5-10 lines of /home/javi/test.pl script?

This looks like you have strict enabled (yay!), but haven't properly declared your $c variable.

I haven't had a chance to look through CB, but code here would be helpful anyway

Replies are listed 'Best First'.
Re^2: 255: perl compilation error code and ssh cannot connect code
by i5513 (Pilgrim) on Nov 01, 2016 at 23:20 UTC
    Hello,

    It is a simple wrong written script. I only use it as example for the question.

    At the real world, I had an 800 lines script (which i surely will publish at github when it is ready) which was working though ansible until I had a error on it ( I think it was a fatal error after it wrote some lines on stdout). Then I debugged the problem to find the reason, that is why I'm asking this question.

    Thank you

    PD: If I find time I will try to search an example which write on stdout and then exit with 255 code because an error

      So does your real script compile? What's the output of:

      perl -c /home/user/script.pl

      ...where the path is the path to your real 800 line script.

      What you're looking for is: script.pl syntax OK. If it isn't, please post the output. If it's overly long, post the first five lines, and the last five lines (separated by whitespace so we can tell where any gap is).