I want to write a python script that pipes a value of a variable (e.g. var = 5) into an external program. I want to store that output then in a .txt file. Since I want to run a couple of these processes simultaneously I tried to do this using subprocess. But I failed. Can someone help me?
Thanks a lot!