Python Paramiko between Linux and Windows Server -- no output obtained from Windows for "dir" or "cd" commands

Pythonista kukki.kanchana at gmail.com
Mon Jun 1 00:09:59 EDT 2015


On Sunday, May 31, 2015 at 6:20:19 PM UTC-7, Dennis Lee Bieber wrote:
> On Sun, 31 May 2015 13:12:24 -0700 (PDT), Pythonista
> <kukki.kanchana at gmail.com> declaimed the following:
> 
> >
> >Thanks Peter but I got no output from your suggestion either.!
> 
> 	From Windows viewpoint, I suspect EACH of the commands you send is
> being executed in a totally new process, with no memory of any commands
> sent previously.
> 
> 	As mentioned, "ipconfig" is a separate executable program file, and can
> be run without being tied to a Windows command shell. "dir", "cd", "copy",
> "del", and many similar functions are NOT actual programs but internal
> functions of the Windows command processor.
> 
> 	Given the mixed quoting used in this thread I'm not sure just what was
> tried or not.
> -- 
> 	Wulfraed                 Dennis Lee Bieber         AF6VN
>     wlfraed at ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Hi Peter -

So I was trying "ipconfig" and "ls /path/to/dir" back to back. Apparently, I needed a sleep inbetween the two, I believe. But if "ls" was used individually, it works fine.

Thanks!



More information about the Python-list mailing list