Would I be able to make rpc_call to another node from escript?  When I start escript, erl node which escript start, is called nonode@nohost.  Is there a way for this node to join the pool, so I can perform rpc call?<br><br>
I have tried set the following in my escript:<br clear="all">net_kernel:start([foobar, shortnames])<br><br>When I ran the escript,  sasl is automatically started up.  This is my default setup in .erlang file.  Even though, with net_kernel:start([foobar, shortnames]) in escript, sasl application is running on nonode@nohost, but the node never assigned the name "foobar".  Why is this?<br>
<br>Here is the sasl output:<br><br>=PROGRESS REPORT==== 28-Feb-2008::15:44:03 ===<br>          supervisor: {local,sasl_sup}<br>             started: [{pid,<0.32.0>},<br>                       {name,sasl_safe_sup},<br>
                       {mfa,<br>                           {supervisor,start_link,<br>                               [{local,sasl_safe_sup},sasl,safe]}},<br>                       {restart_type,permanent},<br>                       {shutdown,infinity},<br>
                       {child_type,supervisor}]<br><br>=PROGRESS REPORT==== 28-Feb-2008::15:44:03 ===<br>          supervisor: {local,sasl_sup}<br>             started: [{pid,<0.35.0>},<br>                       {name,release_handler},<br>
                       {mfa,{release_handler,start_link,[]}},<br>                       {restart_type,permanent},<br>                       {shutdown,2000},<br>                       {child_type,worker}]<br><br>=PROGRESS REPORT==== 28-Feb-2008::15:44:03 ===<br>
         application: sasl<br>          started_at: nonode@nohost<br><br>=PROGRESS REPORT==== 28-Feb-2008::15:44:03 ===<br>          supervisor: {local,net_sup}<br>             started: [{pid,<0.39.0>},<br>                       {name,erl_epmd},<br>
                       {mfa,{erl_epmd,start_link,[]}},<br>                       {restart_type,permanent},<br>                       {shutdown,2000},<br>                       {child_type,worker}]<br><br>=PROGRESS REPORT==== 28-Feb-2008::15:44:03 ===<br>
          supervisor: {local,net_sup}<br>             started: [{pid,<0.40.0>},<br>                       {name,auth},<br>                       {mfa,{auth,start_link,[]}},<br>                       {restart_type,permanent},<br>
                       {shutdown,2000},<br>                       {child_type,worker}]<br><br>=PROGRESS REPORT==== 28-Feb-2008::15:44:03 ===<br>          supervisor: {local,net_sup}<br>             started: [{pid,<0.41.0>},<br>
                       {name,net_kernel},<br>                       {mfa,{net_kernel,start_link,[[foobar,shortnames]]}},<br>                       {restart_type,permanent},<br>                       {shutdown,2000},<br>                       {child_type,worker}]<br>
<br>=PROGRESS REPORT==== 28-Feb-2008::15:44:03 ===<br>          supervisor: {local,kernel_sup}<br>             started: [{pid,<0.38.0>},<br>                       {name,net_sup_dynamic},<br>                       {mfa,<br>
                           {erl_distribution,start_link,<br>                               [[foobar,shortnames]]}},<br>                       {restart_type,permanent},<br>                       {shutdown,1000},<br>                       {child_type,supervisor}]<br>
<br>-- <br>rk<br><br>That which we persist in doing becomes easier for us to do; not that the nature of the thing itself is changed, but that our power to do is increased.<br>-Ralph Waldo Emerson