[erlang-questions] : Making rpc calls from escript

Raimo Niskanen raimo+erlang-questions@REDACTED
Mon Sep 1 09:30:25 CEST 2008


On Mon, Sep 01, 2008 at 05:15:11PM +1200, Vik Olliver wrote:
> On Sun, 2008-08-31 at 22:53 -0600, Dave Smith wrote:
> > I believe you probably need to start net_kernel in order to make that
> > rpc call. Without net_kernel running, there is no distributed Erlang.
> > 
> > You should be able to do something like:
> > 
> > net_kernel:start([foobar, longnames]).
> > 
> > (Assuming your hostname is properly configured).
> 
> Heh, that got:
> 
> ** System NOT running to use fully qualified hostnames **
> ** Hostname 192.168.150.129 is illegal **
> 
> The actual Linux hostname is erms1, /etc/hostname is fully qualified,
> but hostname -s
> gives:
> hostname: Unknown host
> 
> This doesn't sound too good...

You have a network configuration problem (as if you did not know).

Try shortnames instead of longnames since
apparently you will connect over a LAN.

> 
> Vik :v)
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list