#!/bin/sh # äºéèµ·åãã§ã㯠if [ $$ != `pgrep -fo $0` ]; then echo "Already running!" >&2 exit 9 fi # ã¡ã¤ã³å¦ç echo "[`date '+%Y/%m/%d %T'`] Sleep 10 seconds..." sleep 10 exit 0 $$ ã¯ãèªåèªèº«ã®ããã»ã¹IDã $0 ã¯ãèªåèªèº«ã®ããã»ã¹åï¼ç¸å¯¾ãã¹ï¼ã pgrep -fo $0 ã¯ãèªåèªèº«ã®ããã»ã¹IDãåå¾ã ã¡ãªããã»ãã¡ãªããã«ã¤ã㦠ã¡ãªããã¯ãcron å®è¡ããªãã®ã§ããã°ããã§å åã§ããã ãã¡ãªããã¯ãcron ã§å®è¡ãããå ´åã«ãã§ãã¯ãå¹ããªãã çç±ã¯ãpgrep -fo $0 ã cron ã§å®è¡ããéã®ããã»ã¹IDã¨ãªã£ã¦ãã¾ãï¼åããã»ã¹ï¼$0ï¼ã®ããã»ã¹IDã«ãªããªãï¼ããã 2. ä½æä¾ï¼ãã®ï¼ï¼
{{#tags}}- {{label}}
{{/tags}}