2007-12-01から1ヶ月間の記事一覧
pgrep コマンドを利用 use pgrep command http://www.linux.or.jp/JM/html/procps/man1/pgrep.1.html シェルスクリプト名のみ(引数は考慮しない)で二重起動を禁止 #!/bin/sh if [ `pgrep -fo $0` -ne $$ ] then echo $0' is already exist.' exit fi echo $0…
pgrep コマンドを利用 use pgrep command http://www.linux.or.jp/JM/html/procps/man1/pgrep.1.html シェルスクリプト名のみ(引数は考慮しない)で二重起動を禁止 #!/bin/sh if [ `pgrep -fo $0` -ne $$ ] then echo $0' is already exist.' exit fi echo $0…