[erlang-questions] Remote command execution via SSH ?

Mike Oxford moxford@REDACTED
Tue Aug 14 00:03:19 CEST 2012


OT, but I'll answer anyways. :)

ssh server.com /bin/ls > output.txt

-mox

On Mon, Aug 13, 2012 at 2:54 PM, Thomas Elsgaard
<thomas.elsgaard@REDACTED>wrote:

> 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/20120813/86464f3d/attachment.htm>


More information about the erlang-questions mailing list