[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: Why chdir command doesn't work with client.get_transport() ?

charles

2/6/2008 7:54:00 PM


Thank you, Matt, for your valuable advice!

My application is converting (to sftp/ssh) a script which used ftp/telnet to
load/copy/zip files with labels to/from a ClearCase server. ClearCase is a
version control software similar to MS Source Safe or PVCS. The command 'ct
setview aViewName' is just one of my commands which worked fine using
telnet. If you don't type this command and type 'cd aDirNameInClearCase', it
won't work. After typing 'ct ...', the prompt will be changed and the 'cd
....' command will work.

Now my problem has 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-client.get_transport%28%29---tp15248798p153...
Sent from the Python - python-list mailing list archive at Nabble.com.