Skip to content

Instantly share code, notes, and snippets.

@toodooleedoo
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save toodooleedoo/cf19e30147569587a1d3 to your computer and use it in GitHub Desktop.
Save toodooleedoo/cf19e30147569587a1d3 to your computer and use it in GitHub Desktop.
#AEM #CQ #LINUX Validate Application Running + Login Page

A quick way to login and validate AEM or CQ.

if $(ps aux |grep -E "([a]uthor -jar|[p]ublish -jar)" >/dev/null) ; then
echo "AEM Process is running";
else
echo "AEM Process is not running";
exit;
fi
if $(curl --silent "http://localhost:4502/libs/granite/core/content/login.html" |grep "QUICKSTART_HOMEPAGE" >/dev/null); then
echo "Server is running.";
else
echo "Server is running but validation failed";
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment