Can someone tell me what's head mismatch error?<br><br>
./rpc_test:17: head mismatch<br>
escript: There were compilation errors.<br>
<br>
Line 17 is this:<br>
main(_) -><br>
usage()<br><br><br>My escript:<br>#!/usr/bin/env escript<br>%% -*- erlang -*-<br>%-mode(compile).<br><br>-export([main/3, main/1, main/2]).<br>%-export([main/3]).<br><br>main(Node,Module,Args) -><br> try<br> rpc:call(Node, Module, main, Args)<br>
<br> catch<br> _:_ -><br> usage()<br> end;<br><br>main(_) -><br> usage().<br> <br>main(_,_) -><br> usage().<br> <br>usage() -><br> io:format("usage: You need to provide valid Node Name & Module Name & Args\n"),<br>
halt(1).<br><br><br clear="all">thank you.<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