Skip to content

Instantly share code, notes, and snippets.

@Green-Sky
Created October 2, 2022 00:17
Show Gist options
  • Save Green-Sky/abd4158aaecd2d7af1dbc6078143f0c4 to your computer and use it in GitHub Desktop.
Save Green-Sky/abd4158aaecd2d7af1dbc6078143f0c4 to your computer and use it in GitHub Desktop.
#!/bin/bash
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
#rm ~/.config/tox/DHTnodes.json
for i in {0..19}
do
# inital setup client if save file does not exist
if [[ ! -f "tmp_tcp_ngc_$i.tox" ]]; then
# set nick and join group. sleep for good mesure
{ sleep 100s ; echo -en "/nick tgreen_tcp_$i\r/join 4D02722127AB4E36B3086FDE0BFE9255DD1EE9FC5EB4485AB6A34DFE5F4130B2\r" ; sleep 300s ; echo -en "/quit\r" ; } | ./toxic -u -L -t -f tmp_tcp_ngc_$i.tox
fi
screen -dmS toxic_session_tcp_$i ./toxic -L -t -f tmp_tcp_ngc_$i.tox
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment