[erlang-questions] Can escript be used from Inets?

Carl McDade <>
Mon May 4 09:48:04 CEST 2009


I am on windows and using stdlib - 1.16.1 in R13B.

Are you on a Mac? I noticed that R12B5 was the only one available for
my mini-mac.

On Mon, May 4, 2009 at 9:40 AM, Michal Ptaszek
<> wrote:
> What version of the stdlib are you using?
>
> Mine is 1.15.5 - the one I got with R12B5 (maybe R13 came up with some
> changes - if so I will have to look at it since we are using escript very
> intensively).
>
> ----- "Carl McDade" <> wrote:
>
>> Hmm,
>>
>> I see parse_and_run() but no do_run(). So I have a couple of choices
>> here. I can export parse_and_run() if it is correct to do so. Or
>> clone
>> it to do_run() and export this if again parse_and_run() is the
>> function you are speaking of.
>>
>> Thanks,
>>
>>
>> On Mon, May 4, 2009 at 9:20 AM, Michal Ptaszek
>> <> wrote:
>> > Hello,
>> >
>> > After a slight modification of the escript.erl file (you will find
>> it
>> > in the stdlib application) you will manage to run escripts without
>> > compiling them. All you need to do is to export one more function:
>> > escript:do_run/3.
>> >
>> > Of course you will need to provide the path, arguments and escript
>> > options by yourself - but it is not a very tricky task.
>> >
>> > The Inets' 'do' callback function should then call escript:do_run
>> > with the desired arguments.
>> >
>> > ----- "Carl McDade" <> wrote:
>> >
>> >> I was wondering if you can run *.erl files through escript.exe via
>> >> Inets.
>> >> What I would like to do is to have use the httpd_example.erl
>> >> (slightly
>> >> modified to work with escript) rather than the beam file. This way
>> I
>> >> can
>> >> play with Erlang syntax and not have to compile with each change.
>> >>
>> >> A good alternative would be to be able to use Netbeans to compile
>> >> after
>> >> saving changes to the file.
>> >>
>> >> Thanks,
>> >>
>> >> --
>> >> Carl McDade
>> >> Content Management Systems Consultant
>> >> www.hiveminds.co.uk
>> >
>> > Best regards,
>> > --
>> > Michal Ptaszek
>> > www.erlang-consulting.com
>> >
>>
>>
>>
>> --
>> Carl McDade
>> Content Management Systems Consultant
>> www.hiveminds.co.uk
>> ________________________
>
> BR
> --
> Michal Ptaszek
> www.erlang-consulting.com
>



-- 
Carl McDade
Content Management Systems Consultant
www.hiveminds.co.uk
________________________



More information about the erlang-questions mailing list