o Parameter 개수 ($#) #!/bin/bash echo "Param count:$#" if [ $# != 2 ]; then echo "Not 2"else echo "2"fi o Process 탐지 function chk_process() { SERVICE="$1" RESULT=`ps ax | sed -n /${SERVICE}/p` if [ "${RESULT:-null}" == null ]; then echo "$1 not running" return -1 else echo "$1 running" return 1 fi } o Email 보내기 #!/bin/sh function mailer { MAIL="/usr/sbin/sendmail -t$1 -f$2" SUBJECT=$3 BODY=$(/bin..