if [ $$ != $(pgrep -fo $0) ]; then echo "$($0) is already running." exit 1 fi 以ååããããä¸æããã£ãã¨æã£ããã ãã©ãä»åããããé§ç®ã ã£ãã 親ããã»ã¹ããåããã»ã¹ãèµ·åããæãã ã¨ãã¾ããããªãã£ã½ãã CRONã§ã®èµ·åã¨ãã¯é§ç®ããããã ãã©ãããåãã£ã¦ããªãã ã¨ãããã親ããã»ã¹ãè¦ãããã«ä¿®æ£ããã if [ $$ != $(pgrep -fo $0) -a ${PPID} != $(pgrep -fo $0) ]; then echo "${0} is already running." exit 1 fi ããã§ã¡ããã¨åãããã«ãªã£ãã ä»ã«ãã³ãã©ãªãã¡ã¤ã«ãä½æãã¦ããããæ¹ããã£ããã ãã©ãCtrl+Cã¨ãã§ãã£ã³ã»ã«ããæã«ããã¡ã¤ã«ãåé¤ãããªãã£ããã§ãã¡ãã£ã¨é¢åèãã£ãã
{{#tags}}- {{label}}
{{/tags}}