2008-01-21 プロセスが動いているか確認 linux shell たとえば、postgresとか if [ ps -ef | grep /usr/local/pgsql/bin/postmaster | grep -v grep | wc -l != 1 ]; then にょろにょろ fi