Skip to content

Instantly share code, notes, and snippets.

@dekokun
Created March 24, 2012 07:39
Show Gist options
  • Save dekokun/2179707 to your computer and use it in GitHub Desktop.
Save dekokun/2179707 to your computer and use it in GitHub Desktop.
プロセス見て動いてなかったら何かする
run=$(ps aux | grep '[h]oge')
if [ -z "$run" ]; then
do something
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment