#!/bin/bash

node index.js
cd PogoPlayer
node pogo.js
echo "Find the generated accounts in PogoPlayer/accounts.csv"

#!/bin/bash

DEBUG=nightmare xvfb-run --server-args="-screen 0 1024x768x24" node index.js
cd PogoPlayer
DEBUG=nightmare xvfb-run --server-args="-screen 0 1024x768x24" node pogo.js
echo "Find the generated accounts in PogoPlayer/accounts.csv"

Integrate xvfb to run script
Integrate xvfb to run script

Handles ssh and headless environments