(std)input

Hegedus, Tamas . Hegedus.Tamas at mayo.edu
Sat Jun 26 00:01:41 CEST 2004


Dear All, 

I am not a programmer, and I could not find out the solution of the following problem:
I would like to pipe a program output to my python script; after it receives the EOF, I would like to get input from the users.
I do not know the programmer expression of this process. Something like that: I would like to set the stdin back to the keyboard.

A stupid example:
--------------------------
$cat text_file | my.py
  Reading text_file...
  text_file was loaded
  Enter your comment:
--------------------------

Thanks for your help,
Tamas




More information about the Python-list mailing list