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

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -