/usr/bin or /usr/local/bin 에 실행권한 주고 넣어서 사용 # /bin/bash # pm COMMAND=$1 if [ -z "$COMMAND" ]; then echo "Please input [on/off/stat/show] at first variable"; else if [ "on" == "$COMMAND" ]; then sudo pmset -c disablesleep 0; elif [ "off" == "$COMMAND" ]; then sudo pmset -c disablesleep 1; elif [ "stat" == "$COMMAND" ]; then export SLEEP_STAT=`pmset -g | grep SleepDisabled | awk '{printf $2}'`; if..