ssh library "cd" command not working.

1,375 views
Skip to first unread message

binithb

unread,
Dec 4, 2012, 1:18:40 AM12/4/12
to robotframe...@googlegroups.com
Hi there,

Anybody out there know any reason why the cd (change directory) command will not work while using the python based ssh library.

Here is my sample robot statement.
    SSHLibrary.Put File test.txt /home/robot/ (working fine)
    SSHLibrary.Execute Command cd /home/robot (not working :( )
               
is it expected or is it some kind of a bug.

thanks

-binith

binithb

unread,
Dec 4, 2012, 3:56:55 AM12/4/12
to robotframe...@googlegroups.com
Hi

I found it myself, its because each "Execute Command" is executed in a separate shell.
I should use "Write" Command instead , after setting "Prompt" while opening connection.

Thanks anyway

-binith

Gu Ru

unread,
Jul 20, 2015, 5:52:49 AM7/20/15
to robotframe...@googlegroups.com
Thank you very much, that was a useful hint/ feedback

Ananda Kumar

unread,
Jul 15, 2019, 7:55:30 AM7/15/19
to robotframework-users
Hi All,

Anybody out there know any reason why the cd (change directory) command will not work while using the python based ssh library.
I am also facing same issue.

Please any one help here with example or few line of code, it will be appreciate.

Thanks& Regrads,
Ananda
Reply all
Reply to author
Forward
0 new messages