I'm trying to send a variable from a python script to a bash script. I'm using popen
like as shown below:
subprocess.Popen(["bash", "-c", ". mainGui_functions.sh %d %s" % (commandNum.get(), entryVal)])
However, entryVal
can sometimes contain one or more white space characters. In that case I divide the string into multiple arguments ($2,$3..)
How can i get it in one argument?