Created
December 6, 2010 16:19
-
-
Save thewoolleyman/730511 to your computer and use it in GitHub Desktop.
Start selenium-rc if needed
This file contains hidden or 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
#!/usr/bin/env bash | |
export SELENIUM_SERVER_PORT=4444 | |
process_id=$(lsof -i tcp:$SELENIUM_SERVER_PORT -Fp|tr -d p) | |
if [ $process_id ] ; then | |
echo "Selenium server is already running" | |
else | |
selenium-rc & | |
echo "New Selenium server started" | |
fi | |
# now run your command which requires local selenium rc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment