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
Post a Comment