这Shell脚本哪里有问题# Programming - 葵花宝典
L*r
1 楼
我直接用setenv一点问题没有,而且执行sh a.sh后,根本就没进入PerlExe.
#!/bin/tcsh
unset auto-logout
unset autologout
setenv DISPLAY HPLAPTOP11.aXh.XX.edu:0
cd PerlExe/
a.sh: line 2: unset: `auto-logout': not a valid identifier
a.sh: line 4: setenv: command not found
#!/bin/tcsh
unset auto-logout
unset autologout
setenv DISPLAY HPLAPTOP11.aXh.XX.edu:0
cd PerlExe/
a.sh: line 2: unset: `auto-logout': not a valid identifier
a.sh: line 4: setenv: command not found