Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #91612

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

Newsgroups comp.lang.python
Date 2015-05-31 21:09 -0700
References <b92b07c3-6d2a-4fc9-a780-5803b28dadc4@googlegroups.com> <mailman.242.1433074722.5151.python-list@python.org> <3a4707d8-46eb-4ba8-a6d9-3689b3c544f4@googlegroups.com> <mailman.256.1433121594.5151.python-list@python.org>
Message-ID <dafa43a5-d722-4181-af6a-af1cc46abb6e@googlegroups.com> (permalink)
Subject Re: Python Paramiko between Linux and Windows Server -- no output obtained from Windows for "dir" or "cd" commands
From Pythonista <kukki.kanchana@gmail.com>

Show all headers | View raw


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@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@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!

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Python Paramiko between Linux and Windows Server -- no output obtained from Windows for "dir" or "cd" commands Pythonista <kukki.kanchana@gmail.com> - 2015-05-31 00:02 -0700
  Re: Python Paramiko between Linux and Windows Server -- no output obtained from Windows for "dir" or "cd" commands Peter Otten <__peter__@web.de> - 2015-05-31 14:18 +0200
    Re: Python Paramiko between Linux and Windows Server -- no output obtained from Windows for "dir" or "cd" commands Pythonista <kukki.kanchana@gmail.com> - 2015-05-31 13:12 -0700
      Re: Python Paramiko between Linux and Windows Server -- no output obtained from Windows for "dir" or "cd" commands Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-05-31 20:35 -0400
        Re: Python Paramiko between Linux and Windows Server -- no output obtained from Windows for "dir" or "cd" commands Pythonista <kukki.kanchana@gmail.com> - 2015-05-31 21:09 -0700

csiph-web