How do I pass a Python Variable to Bash?
Posted
by user336537
on Stack Overflow
See other posts from Stack Overflow
or by user336537
Published on 2010-05-09T07:20:18Z
Indexed on
2010/05/09
7:28 UTC
Read the original article
Hit count: 204
Hello,
How would I pass a Python variable to the Bash shell? It should work like this:
foo="./RetVar.py 42"
Replace the double-quotes with `s
I have tried printing and sys.exiting the result, but to no avail. How would I accomplish my goal?
© Stack Overflow or respective owner