PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Running the bot unattended with nohup/screen?

Open jrjhealey opened this issue 10 years ago • 5 comments

I realise the answer to this is probably just: go try it...

But I have a *nix server I'd be tempted to leave the bot running on so that my laptop isn't stuck running it.

Will the bot tolerate being called with nohup and having the output redirected? Or will it simply stop running if the session its closed?

jrjhealey avatar Aug 03 '16 20:08 jrjhealey

I use the bot within a named screen session on my home server and all works fine. You'll have to use screen's copy mode to scroll through the history, but that's the only issue I've experienced.

Chaemelion avatar Aug 03 '16 20:08 Chaemelion

I used it with nohup for a while, but I now use screen instead. Here's the code from my script. Not great but it works and with a low overhead.

#!/bin/sh
while true; do
 nohup python pokecli.py --config config.json > $!.txt > test.out 
done &

jalliance avatar Aug 03 '16 20:08 jalliance

Works perfectly fine with tmux for me.

switowski avatar Aug 03 '16 20:08 switowski

I use byobu works perfectly

kinvaris avatar Aug 03 '16 21:08 kinvaris

Yeah nohup worked fine. I think screen is probably the better bet for being able to hop in and out of it.

jrjhealey avatar Aug 03 '16 22:08 jrjhealey