as been solved. I used the class channel's get_pty(),
invoke_shell() and sendall() functions. Basically I used an interactive
shell, so that I could issue commands one by one like using telnet.
Charles
2/6
--
View this message in context:
http://www.nabble.com/Why-chdir-command-doesn%27t-work-with-cli
En Wed, 06 Feb 2008 12:39:55 -0200, <[EMAIL PROTECTED]>
escribió:
> If I had access to the
> list from where I currently work any other way I would use that.
Have you Web access? You can read *and* post messages using:
Google Groups
http://groups.google.com/group/comp.lang.python/
Gmane
http:
[EMAIL PROTECTED] writes:
> However I do understand where your coming from. You are right, I'm a Lotus
> Notes user. If I didn't have to use it I wouldn't. If I had access to the
> list from where I currently work any other way I would use that.
Have you tried www.gmane.org?
--
http://mail.pytho
[EMAIL PROTECTED] wrote:
>
>
>
>
>> I try not to top-post in this group, but the strange formatting of the
>> message makes this advisable, as I am sure many people won't even
>> persist in reading down as far as the "content".
>>
>> Can I make a wild-assed guess that you are a Lotus Notes user
> I try not to top-post in this group, but the strange formatting of the
> message makes this advisable, as I am sure many people won't even
> persist in reading down as far as the "content".
>
> Can I make a wild-assed guess that you are a Lotus Notes user reading
> python-list? Please try an
python-list-bounces+matthew.warren=uk.bnpparibas.com@
>
>python.org
> Subject
> Re:
>
Re: Why chdir command doesn't work with client
Subject
Re: Why
chdir command doesn't work with
05/02/2008 19:39
client.get_tran
> Do you think that paramiko can replace telnet in my application? Thanks.
You need to use .invoke_shell(), then send() and recv().
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
python-list-bounces+matthew.warren=uk.bnpparibas.com@
>
>python.org
>
> Subject
python.org
Subject
Why
chdir command doesn't work with
ind something equivalent to Telnet in paramiko.
Charles
2/3/2008
--
View this message in context:
http://www.nabble.com/Why-chdir-command-doesn%27t-work-with-client.get_transport%28%29---tp15248798p15256088.html
Sent from the Python - python-list mailing list archive at Nabble.com.
--
http://mail.python.org/mailman/listinfo/python-list
> import paramiko
> def exec_command(trans, command):
> chan = trans.open_session()
> chan.exec_command(command)
> stdin = chan.makefile('wb')
> stdout = chan.makefile('rb')
> stderr = chan.makefile_stderr('rb')
> return stdin, stdout, stderr
> def main():
> client = par
here.
Please help. Thanks!
Charles
2/2
--
View this message in context:
http://www.nabble.com/Why-chdir-command-doesn%27t-work-with-client.get_transport%28%29---tp15248798p15248798.html
Sent from the Python - python-list mailing list archive at Nabble.com.
--
http://mail.python.org/mailman/listinfo/python-list
I am trying to get a hold of anyone at Fenix in Thailand. Can you be of any
help?
Pizza Hut
London, Ont.
Canada
--
http://mail.python.org/mailman/listinfo/python-list
ame, directory name, or volume
> > label syntax is incorrect: 'c:\twill'.
>
> Backslash-t is a tab character, so you're trying to chdir to
> C:will, which is not a valid path name. Use a forward slash, double
> up the backslash, or use a raw string literal:
>
&g
Backslash-t is a tab character, so you're trying to chdir to
C:will, which is not a valid path name. Use a forward slash, double
up the backslash, or use a raw string literal:
os.chdir("c:/twill")
os.chdir("c:\\twill")
os.chdir(r"c:\twill")
HTH,
--
Carsten Haese
On May 8, 3:54 pm, HMS Surprise <[EMAIL PROTECTED]> wrote:
> Tried executing os.chdir("c:\twill") from a python Tk shell and got
> the error message:
>
> WindowsError: [Error 123] The filename, directory name, or volume
> label syntax is incorrect: 'c:\twill'.
>
> I have the directory exists as I c
HMS Surprise napisał(a):
> Tried executing os.chdir("c:\twill") from a python Tk shell and got
> the error message:
>
> WindowsError: [Error 123] The filename, directory name, or volume
> label syntax is incorrect: 'c:\twill'.
>
> I have the directory exists as I copied the name from the explorer
On Tuesday 08 May 2007 22:54:39 HMS Surprise wrote:
> WindowsError: [Error 123] The filename, directory name, or volume
> label syntax is incorrect: 'c:\twill'.
>
> What is wrong with the syntax?
Try 'c:\\twill' because the '\' character is the escape character.
Eg: \n is new-line (aka crlf)
\t is
Tried executing os.chdir("c:\twill") from a python Tk shell and got
the error message:
WindowsError: [Error 123] The filename, directory name, or volume
label syntax is incorrect: 'c:\twill'.
I have the directory exists as I copied the name from the explorer
window that was open to it.
What is
21 matches
Mail list logo