When executing the script, an error message pops up:
/bin/sh^M: Corrupt interpreter: No that file or directory
This is because the script file is saved in DOS file format. You can open the file with vim and then perform the following operations:
Solution:
:set ff=unix
:wq
Read More:
- Shell Script syntax error near unexpected token `done’
- [Solved] Linux shell Script Error: syntax error near unexpected token `do
- Ubuntu shell Script syntax error near unexpected token `$‘{\r‘‘
- Running shell script reports an error: “syntax error near unexpected token solution ‘”
- [Solved] Shell error: syntax error: unexpected end of file
- [Solved] Linux executes SQL script Error: Syntax error
- [Solved] shell Error: Syntax error: “(“ unexpected (expecting “}“)
- Shell: How to Get System Current Tme and Format it
- [Solved] Linux SSH Login Terminal Error: shell request failed on channel 0
- Centos7 Start Error: Entering emergency mode.Exit the shell to continue
- MAC Adb Shell Error: -bash: adb: command not found, adb
- Prompt “entering emergency mode. Exit the shell to continue” if the Linux operating system does not start normally
- The JSON variable is parsed in the shell to obtain the value corresponding to the key
- [Solved] ImportError:lib***.so–cannot open shared object file: No such…(pycharm/clion Error but shell No Error)
- [Solved] Ubuntu 20.04.3 Fail to Start sshd Error: Failed to start OpenBSD Secure Shell server
- [Solved] sbatch: error: Batch script contains DOS line breaks (\r\n)
- [Solved] RHEL 7 installs Oracle RAC 11.2.0.4, executes root.sh error ohasd: failed to start
- Sublime text 3 compiles and executes C/C++ programs directly
- subprocess installed post-installation script returned error exit status 1
- npm ERR! Failed at the [email protected] install script.