3
Comment passer eof python à stdinpython stdin eof
ici est mon code
p = Popen(commd,stdout=PIPE,stderr=PIPE,stdin=PIPE)
o = p.communicate(inputstring)[0]
quand je lance la COMMD dans la ligne de commande après i entrée les fenêtres inputString attendent encore un Ctrl + Z pour terminer accepter l'entrée.
Comment puis-je passer eof ou Ctrl + Z dans le programme?
Merci!
merci! après p.communicate (inputString)? – icn
oui. Edité pour clarifier. – fserb