The CTRL-M (^M) suggests that somewhere along the way this was first opened in a Windows environment. Did you untar the file you downloaded from PowerLink from within Windows first and/or you did you possibly open up the shell script in Windows and save it?
If any of the above explains it, upload the tar file to your Linux host and untar it there instead and/or if you are possibly modifying the shell script for whatever reason, save it within a Linux environment and not within Windows.
There are ways of removing ^M's of an affected file, but at this point best to just start over with the tar file as it is unknown what other files might be affected.
christopher_ime
4 Operator
•
2K Posts
0
April 22nd, 2011 22:00
The CTRL-M (^M) suggests that somewhere along the way this was first opened in a Windows environment. Did you untar the file you downloaded from PowerLink from within Windows first and/or you did you possibly open up the shell script in Windows and save it?
If any of the above explains it, upload the tar file to your Linux host and untar it there instead and/or if you are possibly modifying the shell script for whatever reason, save it within a Linux environment and not within Windows.
There are ways of removing ^M's of an affected file, but at this point best to just start over with the tar file as it is unknown what other files might be affected.