GShellAutomator/Automator/code/qwiklabs/get_account.sh

23 lines
736 B
Bash
Executable File

#!/bin/bash
d=":1"
#Start chrome
#if [ $1 == "False" ]; then
echo "Starting the script now!"
#DISPLAY=:1 /usr/bin/google-chrome-stable --user-data-dir='./chrome-profile' --no-first-run --make-default-browser > /dev/null 2> /dev/null &
DISPLAY=:1 /usr/bin/firefox &
# echo "Starting chrome without proxy"
#else
# DISPLAY=$d /usr/bin/google-chrome-stable --user-data-dir='./chrome-profile' --no-first-run --proxy-server=socks5://$1 > /dev/null 2> /dev/null &
# # echo "Starting chrome with proxy"
#fi
#Wait enough to let chrome start up
sleep 5
#Now start the actual bot, we're in a safe environment
DISPLAY=$d python3 /home/user/code/qwiklabs/get_google_account.py $2
# python3 /code/qwiklabs/get_google_account.py $2