subprocess - How to write EOF to STDIN popen in python -


i have following command run through popen:

p = subprocess.popen(["/usr/bin/whiptail", "--title", "\"progress\"", "--gauge", "\"\"", "6", "50", "0"], stdout=subprocess.pipe, stding=subprocess.pipe) 

to stop whiptail command running need send eof stdin.

how send eof stdin in python ?

or call p.terminate()

what need close file used standard input script.

so in case it's p.stdin.close().


Comments

Popular posts from this blog

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -