>>>>> Sinan Nalkaya <[EMAIL PROTECTED]> writes: > hi, > i have found expect method for this purpose. i`m trying to use pexpect but > following code gives me an something strange as a result.
When working with pexpect, logging the entire conversation is extremely useful fro debugging > import pexpect > cmd = '/usr/bin/rsync config [EMAIL PROTECTED]:/tmp/.' > #cmd = 'ssh [EMAIL PROTECTED]' > child = pexpect.spawn(cmd) Add "child.logfile = sys.stdout" here and check what's going on. Ganesan -- Ganesan Rajagopal -- http://mail.python.org/mailman/listinfo/python-list