Export to GitHub

pysftp - issue #3

chdir followed by execute does not execute in new directory


Posted on Feb 14, 2012 by Massive Rabbit

What steps will reproduce the problem? 1. srv = pysftp.Connection(host=self.host, private_key_pass=self.pw) 2. srv.chdir('newDir') 3. srv.execute('pwd')

What is the expected output? What do you see instead? expected output ~/newDir get just home directory

What version of the product are you using? On what operating system? 0.22

Please provide any additional information below.

Comment #1

Posted on Feb 16, 2012 by Massive Rabbit

This is a bug in paramiko. srv.execute('cd newDir && pwd') works. Anyway, thanks for the module!

Comment #2

Posted on Mar 9, 2012 by Helpful Giraffe

Comment deleted

Comment #3

Posted on May 11, 2014 by Grumpy Monkey

migrating to

https://bitbucket.org/dundeemt/pysftp/issue/15/chdir-followed-by-execute-does-not-execute

Status: Duplicate

Labels:
Type-Defect Priority-Medium