This problem is not in any way related to paramiko, and this mailing list is the wrong place to try to get support for it. You would have the exact same problem with any other SSH client.
That said, some quick hints for getting started: Neither PATH nor PYTHONPATH is used by the Python interpreter when invoked with the usage you gave, and the "current directory" on a new shell is always the user's home directory. If you're changing the current directory on login via your shell's startup scripts, be aware that not all such scripts are invoked for noninteractive shells (as this is here). On Wed, Mar 3, 2010 at 6:03 AM, Navid Parvini <parvini_na...@yahoo.com>wrote: > Dear All, > > I want to run a python code named "tst.py" from my Windows machine on a > Linux (Fedora 10) machine. > > Would you please help me? > > > I wrote the following code: > > channel = self.myTransportObj.open_session( ) > channel.exec_command( "python ./tst.py" ) > > but it did not work. I got the following error: > > "python: can't open file './tst.py': [Errno 2] No such file or directory" > > Although I set the remote machine path to the folder that contains the > tst.py module. > > Would you please help me on this matter? > > Thank you in advance. > > Navid > > > _______________________________________________ > paramiko mailing list > paramiko@lag.net > http://www.lag.net/cgi-bin/mailman/listinfo/paramiko >
_______________________________________________ paramiko mailing list paramiko@lag.net http://www.lag.net/cgi-bin/mailman/listinfo/paramiko