Skip to content

Instantly share code, notes, and snippets.

@philipp-r
Last active July 25, 2016 16:49
Show Gist options
  • Save philipp-r/1d99f754b5eae83d4d3910f1f95d81a8 to your computer and use it in GitHub Desktop.
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
#!/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
#!/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