How do I pass random generated number in a python script eg
state = random.randint(3, 9)
os.system('bash script.sh $(state) ') #doesn't compile
to a shell script eg.
echo '{"Name": "Boom", "State": '$1'}'
How do I pass random generated number in a python script eg
state = random.randint(3, 9)
os.system('bash script.sh $(state) ') #doesn't compile
to a shell script eg.
echo '{"Name": "Boom", "State": '$1'}'