[erlang-questions] Erlang SSH examples
Sun Apr 4 20:04:36 CEST 2010
Thanks for the pointer to jungerl - I was a little bit confused about ssh_cm, but it became clear after I checked the source for that module.
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")
黃耀賢 (Yau-Hsien Huang) wrote:
> Jungle of Erlang codes (
> an implementation of SSH, too.
> On Sun, Apr 4, 2010 at 7:33 PM, Radu Voicilas <> wrote:
>> Hi guys,
>> Are there any [very] basic examples of how to use the ssh module from
>> I've only found this one (
>> and the documentation.
>> erlang-questions (at) erlang.org mailing list.
>> See http://www.erlang.org/faq.html
>> To unsubscribe; mailto:
More information about the erlang-questions