2007-01-01から1年間の記事一覧

シェルスクリプトの二重起動禁止|how to forbid to start same process in shell script

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…

Poderosa の設定のバックアップ

Poderosa のバックアップは、以下のファイル。これらをバックアップ。 C:\Program Files\Poderosa\options.conf C:\Program Files\Poderosa\ssh_known_hosts リストア時には、この二つのファイルを上書きする。