I'm new to putty.
However while running a shell script I got this error:
"cannot execute binary file"
I believed the syntax is :
sh Name_of_shellScript.sh parameters
How can I resolve this?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
I just ran into a similar problem, which, at least in my case, was caused by the fact that the
.sh file was DOS-encoded (i.e. using
\r\n as line endings instead of plain
\n). Converting it with the venerable
fromdos utility of the tofrodos package did fix the issue.