Skip to content

Instantly share code, notes, and snippets.

@van-knowmad
Created October 12, 2012 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save van-knowmad/3880651 to your computer and use it in GitHub Desktop.
Save van-knowmad/3880651 to your computer and use it in GitHub Desktop.
wreconsole_mon.sh
#!/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