#!/bin/bash tor & while ! curl -s --socks5 127.0.0.1:9050 'https://check.torproject.org/' | grep -qm1 Congratulations do sleep 0.5 done torch-agent $1 $2 $3 $4