rexpect
rexpect copied to clipboard
execute 'ls -l' to stdout
Excuse me, how can I execute 'ls -l' to output a directory list after logging into the server via ssh? I managed to execute 'ls -l' successfully, but I'm confused when trying to print out the directory structure. Am I missing any related methods?
Hi! What you describe should work the same as the example from the README (which is with ftp though). What is the exact issue you're facing?
@jellybobbin did you manage to figure it out? Or what exactly are you stuck ok?