shell脚本应用(5)--实用脚本片段
摘要:
校验参数if [ "$#" -ne 1 ]thenecho "Incorrect number of arguments"echo "Usage: command arg1"exit 1fi等待后台程序执行完再继续prog1 &#获取prog1的pidpid1 = $1...#等待后台prog1执行完继续脚本wait &pid提示用户输入参数#!/bin/bashread -p "please type the password:" PWecho $PW更改登录用户密码,懒得每次输入新旧密码#!/b 阅读全文
posted @ 2014-02-26 21:29 飘移 阅读(392) 评论(0) 推荐(0) 编辑