生成script文件的问题# Unix - 噫吁兮,危乎高哉
F*Q
1 楼
我想生成一个最简单的script文件,就是改变一下当前目录,比如
nedit tome
然后键入
#!/bin/tcsh
cd /afs/thayer/nmlhome/fangq
然后保存文件,
chmod +x tome
然后执行的时候什么都不显示,也没有改变目录,
另外一个最简单的;例子:
#!bin/tcsh
echo $1
执行的时候也没有显示第一个参数,什么反应也没有,请问是什么原因?
俺是在aix的tcsh下
nedit tome
然后键入
#!/bin/tcsh
cd /afs/thayer/nmlhome/fangq
然后保存文件,
chmod +x tome
然后执行的时候什么都不显示,也没有改变目录,
另外一个最简单的;例子:
#!bin/tcsh
echo $1
执行的时候也没有显示第一个参数,什么反应也没有,请问是什么原因?
俺是在aix的tcsh下