Details of error reporting are as follows
root@OpenWrt :~# /root/connect_ net.sh
-ash: /root/connect_ net.sh: not found
When running a script, the above error occurs. The variables in the script are defined as
code = curl - O/dev/null - SW% {http_code} www.baidu. Com
After querying, it is found that the shell only supports ash in openwrt, while Bash is used by default in Linux and Ubuntu
The solution here is when defining variables, the left and right sides of the equal sign '=' are not left blank, as shown in the example
code = curl - O/dev/null - SW% {http_code} www.baidu. Com
The operation of variables in openwrt still needs attention
- variable operation only supports expr, not $[], $(()), let. These three formats must leave a space around the plus sign “+” OL>
Read More:
- After NPM run dev is running, the browser does not respond and reports an error in. / ~ / Babel loader / lib! / ~ / Vue loader / lib/ selector.js?type=script&in
- In Linux shell script, about the commonly used flag [- EQ, GT..] in test and if judgment
- Shell script running error bash: JPS: command not found
- Solutions to errors in virtual machine running in Android studio
- How to launch powershell script in C#
- The problem encountered in pyinstaller packaging “failed to execute script × *”
- Unity3d mount script error “can’t add script behavior TMP”_ CoroutineTween. …”
- Solution of modulenotfounderror in running pychar
- Error in go running: cannot find package “
- The difference between single equal sign and double equal sign EQ in shell script
- Solution of server not running yetexception in HBase
- Problems encountered in running OpenGL
- Error running ‘Tomcat 9‘: Address localhost:1099 is already in use
- Vs error: there is an error in the script of the current page
- Running course of Kafka in Windows Environment
- Windows batch: File running in the background
- Running bat batch file in background
- The perfect solution of VS2010 console program running in a flash
- Running Ubuntu 16.04 in VMware to solve the full screen problem
- Prevent flashback after running code in VC 6.0