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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -