I have a little escript file that connects to a node and does some rpc calls and stuff...
It works fine for short or longnames but relies on standard http comms for distributed Erlang.
I would like to use it but with https/SSL for distribution.
To start a 'normal' Erlang system with SSL you have to pass in the various flags to tell Er...
I have an escript file which runs fine from the command line, i.e.:
./escript_file
It is meant to be cron friendly and all paths are explicit but when I run it, it fails to compile saying that there are bad attributes.
The bad attributes in question are macro definitions:
-define(COOKIE, 'somecookie').
The Answer
Thanks to Geoff ...
Hi all,
according to Siebel documentation, eScript supports varargs.
The following sample is taken from the Siebel documentation:
function SumAll()
{
var total = 0;
for (var ssk = 0; ssk < SumAll.arguments.length; ssk++)
{
total += SumAll.arguments[ssk];
}
return total;
}
However, if I call this method like SumAll(1,2,...