popen2.popen2,3,4 from Python 2.0 on NT 4.0 SP5
David Bolen
db3l at fitlinxx.com
Mon Oct 30 16:25:54 EST 2000
More information about the Python-list mailing list
Mon Oct 30 16:25:54 EST 2000
- Previous message (by thread): popen2.popen2,3,4 from Python 2.0 on NT 4.0 SP5
- Next message (by thread): popen2.popen2,3,4 from Python 2.0 on NT 4.0 SP5
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
speed@?.com (Jake Speed) writes: > If you just use popen(cmd, "r"), won't it take stdin from the console? > I suppose you could use "echo | sqlplus user/pass @file"... > ...or "rem | sqlplus user/pass @file" for Windows. No, if you just used os.popen() then there is no stdin for the child process (e.g., no file handle is opened). In fact, occasionally some processes don't like this if they're written to assume they can make some calls against stdin before they generate their output. -- -- David -- /-----------------------------------------------------------------------\ \ David Bolen \ E-mail: db3l at fitlinxx.com / | FitLinxx, Inc. \ Phone: (203) 708-5192 | / 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \ \-----------------------------------------------------------------------/
- Previous message (by thread): popen2.popen2,3,4 from Python 2.0 on NT 4.0 SP5
- Next message (by thread): popen2.popen2,3,4 from Python 2.0 on NT 4.0 SP5
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list