I think you have created a file under Windows and there are Windows end line characters.
YES!!!
That was the problem.
I made the script with WinScp, and now when i checked i saw the file was in windows format instead of unix.
when i converted to unix it worked right away.
Thank you @Bieniu for all help.
1 Like