Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash case statement

case "$1" in
        start)
            start ;;
        stop)
            stop ;;
        restart)
            stop; start ;;
        *)
            echo $"Usage: $0 {start|stop|restart}"
            exit 1
esac
Source by tldp.org #
 
PREVIOUS NEXT
Tagged: #bash #case #statement
ADD COMMENT
Topic
Name
8+4 =