Are there any [very] basic examples of how to use the ssh module from Erlang?
I've only found this one (http://easyerl.blogspot.com/2007/11/experimenting-with-erlang-ssh-support.html) and the documentation.
Thanks,
Radu.
________________________________________________________________
erlang-questions (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-questio...@erlang.org
I am trying to come up with an automatic deployment system for a legacy code base (which is written in Python) and the only way that I can do that is by ssh-ing as my user on the given host, sudo as root and run the deploy command. The only problem I encounter here is how I could do something like this (sorry for the imperative pseudocode):
if ssh_connection:send(Connection, ChannelId, "sudo su -").startswith("[sudo] password"):
ssh_connection:send(Connection, ChannelId, "password)
ssh_connection:send(Connection, ChannelId, "deploy project")
...
Thank you,
Radu.
/Tony
/s
On Apr 4, 6:33 am, Radu Voicilas <r...@picohost.net> wrote:
> Hi guys,
>
> Are there any [very] basic examples of how to use the ssh module from Erlang?
> I've only found this one (http://easyerl.blogspot.com/2007/11/experimenting-with-erlang-ssh-sup...) and the documentation.
>
> Thanks,
> Radu.
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> Seehttp://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscr...@erlang.org
Kenji Rikitake
In the message <4BB87922...@picohost.net>
dated Sun, Apr 04, 2010 at 02:33:30PM +0300,
Radu Voicilas <ra...@picohost.net> writes:
> Hi guys,
>
> Are there any [very] basic examples of how to use the ssh module from Erlang?
> I've only found this one (http://easyerl.blogspot.com/2007/11/experimenting-with-erlang-ssh-support.html) and the documentation.
________________________________________________________________
/s