call ls command and return output to variable

Mar 16, 2012 at 8:16 PM

Can someone assist me to write the code necessary to do the following?  I'm new to this library.

- connect to host: "xxx" with non-root user: "uuu", with user uuu password: "ppp"

- call ls -la command and return output to a string

- disconnect from SSH

PS: I don't want a terminal to popup.  I want this to happen strictly from code.  Is this possible?

Apr 27, 2012 at 4:13 PM

Hello

Yes it's possible, please see the Tests that comes with the source code for reference code.

Sorry for not providing you with a code sample.