Skip to content

Instantly share code, notes, and snippets.

@ryross ryross/ forked from ruudud/
Last active Aug 29, 2015

What would you like to do?
# Depends on phantom.js being installed
command -v $PHANTOM_CMD > /dev/null || { echo "Phantomjs not found"; exit 1; }
get_phantom_pid (){
echo `ps aux|grep $PHANTOM_CMD|grep buster|awk '{ print $2 }'`
case "$1" in
echo "Starting phantomjs"
phantomjs --webdriver=4445 --ignore-ssl-errors=true &>/dev/null &
echo "Killing phantomjs server"
kill `get_phantom_pid`
echo "Usage:
$0 start|stop"
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.