Created
October 12, 2012 18:17
-
-
Save van-knowmad/3880651 to your computer and use it in GitHub Desktop.
wreconsole_mon.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Checks to see whether WRE Console is running; this is a major security risk. | |
host=`uname -n` | |
if ps ax | grep -v 'grep' | grep 'wreconsole.pl' > /dev/null | |
then | |
echo "WRE Console is running on $host." | |
else | |
exit 0 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment