Redirecting input?

fbasegmez fb at ultranet.com
Tue Jul 3 11:27:37 EDT 2001


How do you redirect commands to a Unix process initiated from a Python script?  
For example:

import os

runcmd='rlogin othersystem'
os.system(runcmd)
password='mypassword'
#now I would like to input my password here
#obviously os.sytem(password) does not work.
???

Regards,

Fahri



More information about the Python-list mailing list