Re: [Tutor] Resend: Using pexpect to SCP files

2011-07-19 Thread Sander Sweers
On 19 July 2011 13:20, Johan Geldenhuys wrote: It works fine for me in an interactive idle session.. Have you tried this to see if works like this? Does the command work when run directly from the command line? > I am using pexpect in a script to SCP files to a inux server. > Here is a snippet f

[Tutor] Resend: Using pexpect to SCP files

2011-07-19 Thread Johan Geldenhuys
Resend in text format Hi there all, I am using pexpect in a script to SCP files to a inux server. Here is a snippet from the code: def doScp(self, user, password, host, path, files):         fNames = " ".join(files)     self.logger.log('Running command for %s' % fNames)     try: