[erlang-questions] Remote command execution via SSH ?

Kenneth Lundin kenneth.lundin@REDACTED
Tue Aug 14 18:17:45 CEST 2012


You can use or look at the code in ct_ssh:exec/3 in the Commontest
application.
It does what you are looking for i.e. executes a command and returns the
output as data.

/Kenneth , Erlang/OTP Ericsson
Den 13 aug 2012 23:54 skrev "Thomas Elsgaard" <thomas.elsgaard@REDACTED>:

> Hi
>
> Does anybody have a good simple example of executing commands on a
> remote server via SSH?
>
> Nothing fancy, just something like:
>
> ------
> Connect to host
> Execute command '/bin/ls'
> Read output from command
> Close connection
> ------
>
> Best regards
>
> Thomas
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120814/c60d0f27/attachment.htm>


More information about the erlang-questions mailing list