Wie schreibt EOF STDIN popen in python

Habe ich den folgenden Befehl ausführen, durch popen:

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

Stoppen der hexenwels-Befehl ausführen ich brauche zu senden EOF stdin.

Wie sende ich EOF stdin in Python ?

oder ich Ruf einfach p.terminate () -

  • Am Rande, willst du wirklich Progress in Anführungszeichen-als wenn es nicht wirklich Fortschritt?
InformationsquelleAutor gudge | 2015-08-30
Schreibe einen Kommentar