I am trying to use variables to construct the
--command arg for
My shell script look like this:
buildId="aa-bb-cc" versionCode="123456" daily="daily" gnome-terminal -e 'sh -c "while true; do python acra.py $versionCode $buildId 0 $daily sleep 600 # 10 mins done"'
But when I run this script, new terminal open but it cannot recognize these variables, I'm only receive
sys.argv = ['acra.py', '0'] inside my python script, so I guess the cmd was executed just like:
python acra.py 0
So how can I use variable in this case?