Cha*_*rly 2 linux redhat shell command-line-interface
当我尝试.sh使用 Redhat运行我的文件时./test.sh
我收到类似的错误
[test@tester unix_scripts]$ ./test.sh
: No such file or directory
[test@tester unix_scripts]$
Run Code Online (Sandbox Code Playgroud)
我还设置了文件的权限 chmod 777 test.sh
还是同样的错误
有谁能够帮助我?
实际上问题是我使用的脚本是在 dos 中创建的,所以我使用 dos2unix 命令将我的脚本转换为 unix。感谢大家的宝贵帮助。
| 归档时间: |
|
| 查看次数: |
47482 次 |
| 最近记录: |