Skip to content

Instantly share code, notes, and snippets.

@petyosi
Created January 15, 2009 17:16
Show Gist options
  • Save petyosi/47494 to your computer and use it in GitHub Desktop.
Save petyosi/47494 to your computer and use it in GitHub Desktop.
#!/bin/bash
for daemon in $(cat daemons); do
!(ps ax | grep "$daemon" | grep -v grep > /dev/null) && echo $daemon
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment