PHP
·
发表于 5年以前
·
阅读量:8290
#!/bin/bash
function start(){
echo "start the task"
}
function stop(){
echo "stop the task"
}
function help(){
echo "Usage : this is a demo!"
}
case $1 in
start)
start
;;
stop)
stop
;;
help)
help
exit 1;;
?)
help
exit 1;;
esac