script work fine, but WinSCP show Error with Error code 0
I run perl script as a Custom command (like this: perl -e '[script code]' !&)
And I got situation like this: script work fine, but WinSCP show Error window with some text and Error code 0.
I was confused!
...but after review [script code] I find some string like this "print STDERR $str" instead "print STDOUT $str" (for normal work!).
=> WinSCP show Error window just if you [script code] print STDERR!
...with any Return Error Code.
And I got situation like this: script work fine, but WinSCP show Error window with some text and Error code 0.
I was confused!
...but after review [script code] I find some string like this "print STDERR $str" instead "print STDOUT $str" (for normal work!).
=> WinSCP show Error window just if you [script code] print STDERR!
...with any Return Error Code.