I'm trying to run a ksh script with a case condition to handle parameters.
#!/bin/ksh
db_start(){
*code
}
db_shut(){
*code
}
case "$1" in
up)
db_start TRNG
;;
down)
db_shut TRNG
;;
*)
echo "Usage: $0 { up | down }"
;;
esac
Why is it that when I run the program without passing any
parameters (such as up, down), the program executes the first function (db_start TRNG) it comes to. It should display the echo info. What is wrong with my syntax?