Created
December 10, 2013 21:29
-
-
Save 5HT/7900535 to your computer and use it in GitHub Desktop.
Erlang SSH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(x). | |
-export([exec/1]). | |
exec(A) -> spawn(fun() -> io:format("~p\n", [A]), exit(normal) end). | |
Node1: | |
> B=ssh_sample_cli:listen(8323, [{subsystems, []}, {exec, x, exec, ""]). | |
Node2: | |
$ ssh -p 8323 to.the.host 'lists:reverse("test").' | |
Node1: | |
"list:reverse(\"test\")." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment