I'm having an issue running multiple commands in a case statement. If i only run one command it works fine. Am I supposed to use double semi-colons after each statement or do i not need any at all?
here is a snippet of the code:
case `uname` in
"Linux")
echo This is linux.
cat $BODY | mail -s "$SUBJECT"
email@domain.com
echo useradd $USERID -c \"$USERNAME\"
#useradd.orig $USERID -c "$COMMENT"
;;
"SunOS")
echo This is sun.
cat $BODY | mailx -s "$SUBJECT"
email@domain.com
echo useradd $USERID -c \"$USERNAME\"
#useradd.orig $USERID -c "$COMMENT"
;;
"SCO_SV")
echo This is sco.
cat $BODY | mail -s "$SUBJECT"
email@domain.com
echo useradd $USERID -c \"$USERNAME\"
#useradd.orig $USERID -c "$COMMENT"
;;
*)
echo Sorry I do not recognize that OS."
;;
esac
thanks