Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.