Readling all input from stdin

Discussion in 'Python' started by Svenne Krap, Jul 28, 2003.

  1. Svenne Krap

    Svenne Krap Guest

    Hi.

    I am writing a small script, that is called from an external program
    (the qmail mailserver), I need to capture all input from stdin before
    continueing the script ..

    I looked for sys.stdin.readlines() but that is not present. I found
    sys.stdin.readline(), but how do I loop through it (or rather how do I
    know, when I am finished with looping ?)

    Thanks in advance

    Svenne
     
    Svenne Krap, Jul 28, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Johnathan Doe

    peek at stdin, flush stdin

    Johnathan Doe, May 15, 2004, in forum: C Programming
    Replies:
    5
    Views:
    25,471
    Chatoyer
    May 17, 2013
  2. Alessandro Crugnola *sephiroth*

    readling newlines

    Alessandro Crugnola *sephiroth*, Jan 10, 2004, in forum: Python
    Replies:
    4
    Views:
    299
    John Roth
    Jan 11, 2004
  3. Adam Funk
    Replies:
    4
    Views:
    441
    Adam Funk
    Dec 21, 2007
  4. Alexy Khrabrov
    Replies:
    3
    Views:
    99
    mortee
    Nov 11, 2007
  5. Peng Yu

    binmode for readling the whole file?

    Peng Yu, Jun 11, 2010, in forum: Perl Misc
    Replies:
    8
    Views:
    131
Loading...

Share This Page