[atg@endeca control]$ ./initialize_services.sh
-bash: ./initialize_services.sh: /bin/sh^M: bad interpreter: No such file or directory
-bash: ./initialize_services.sh: /bin/sh^M: bad interpreter: No such file or directory
The ^M is a carriage return character. Linux uses the line feed character to mark the end of a line, similar to windows that uses CR LF. So , currently we got windows line endings, which linux is not able to understand is confusing Linux.
To fix this, we will need to remove that confusing characters using command shown below :
[atg@endeca control]$ sed -i -e 's/\r$//' initialize_services.sh.
Now run initialize services :
[atg@endeca control]$ ./initialize_services.sh
No comments:
Post a Comment