这个是一个单次输入然后自动放在命令中.那我想能不能做到 ln –sv /opt/release/项目名/版本号/程序名 /etc/initd/应用名 4个参数同时提示输入然后放在命令中的4个不同位置?复制代码
- echo "please input software name!"
- read var
- /etc/init.d/$var stop
- echo "software was stoped!!"
- rm –rf /etc/init.d/$var
- echo "software was deleted!!"
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |