Last active
July 25, 2016 16:49
-
-
Save philipp-r/1d99f754b5eae83d4d3910f1f95d81a8 to your computer and use it in GitHub Desktop.
Start Pokemon GO Map (https://github.com/AHAAAAAAA/PokemonGo-Map) with multiple instances
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
#!/bin/bash | |
# Start Pokemon GO Map with multiple instances to scan | |
# see https://github.com/AHAAAAAAA/PokemonGo-Map/issues/1159#issuecomment-234522134 | |
# Delete db when restarting | |
rm pogom.db | |
# Delete nohup.out | |
rm nohup.out | |
# Location 1 | |
nohup python runserver.py -a google -u "USER1" -p "PASSWORD1" -l "LOCATION1" -st 10 -H IPADDRESS -P PORT -k "API_KEY" & | |
sleep 3 | |
# Location 2 | |
nohup python runserver.py -a google -u "USER2" -p "PASSWORD2" -l "LOCATION2" -st 10 -H IPADDRESS -P PORT -k "API_KEY" & | |
sleep 3 | |
# Location 3 | |
nohup python runserver.py -a google -u "USER3" -p "PASSWORD3" -l "LOCATION3" -st 10 -H IPADDRESS -P PORT -k "API_KEY" & | |
sleep 3 | |
exit |
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
#!/bin/bash | |
# Kill runserver.py before restarting it with this script | |
# see http://stackoverflow.com/a/3510850/5905273 | |
kill $(ps aux | grep 'python runserver.py' | awk '{print $2}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment