Hey guys:
I'm trying to write a python script to execute a Linux program, with several arguments set by the user, like so:
import os
variable_input=int(input("Input Number Argument: "))
os.system("/path/to/program"," -argument1 ",variable_input)
However, the os.system() command doesn't allow more than one input, so I tried this:
import os
variable_input=int(input("Input Number Argument: "))
final_command="/path/to/program"," -argrument1 ",variable_input
os.system(final_command)
Only to find out that the os.system() command will only accept string input (that is, quotes around the input). That won't work, for obvious reasons. Is there some workaround, or an alternative to the os.system() command?
Thanks in advance!