Howto: auto re-run Gekko on crash
#1
Sometimes it happens that some error will occur in Gekko and the program will turn off, for example when we have runned Gekkos live trade. 

We can overcome this by simply loops in Bash.
Code:
#!/bin/bash
for i in {1..10}
do
$1
done
1. Save above code to loop.bash file and copy to Gekko directory.
2. $ chmod +x loop.bash
3. $ ./loop.bash "node gekko -c config.js"

After turning off Gekko, the script will launch Gekko again. He will repeat the action 10 times.
  Reply


Messages In This Thread
Howto: auto re-run Gekko on crash - by xFFFFF - 03-18-2018, 11:49 AM
RE: Howto: auto re-run Gekko on crash - by xFFFFF - 03-21-2018, 12:09 PM

Forum Jump:


Users browsing this thread: