Questions tagged [escript]

eScript is designed to describe the various steps in adding support for a new programming language to Eclipse.

eScript is designed to describe the various steps in adding support for a new programming language to Eclipse. The idea behind eScript is that someone can implement an Eclipse plug-in by using a simple script language instead of using a sometimes complicated and confusing combination of XML and Java. For more details, see this link : http://wiki.eclipse.org/FAQ_What_is_eScript%3F

32 questions
7
votes
1 answer

How to run an Elixir escript on Windows 8.1

I'm creating a mix escript, and all seems well, but I can't invoke the generated escript executable. >mix escript.build lib/cmdlineutil.ex:2: warning: variable args is unused Compiled lib/cmdlineutil.ex Generated cmdlineutil.app Consolidated…
10 cls
  • 1,325
  • 2
  • 17
  • 31
4
votes
1 answer

Erlang and bash scripting (escript)

I am very new in Erlang and want to merge bash script with Erlang node and function. I have one Mnesia Database where we go into Erlang node and run several function but i want to run those functions via some bash script so that I can use those bash…
bhrtsn007
  • 41
  • 1
4
votes
2 answers

How to run Eclipse Project using Escripts plugin?

I have installed Eclipse Escripts plugin, but it does not seem to have proper documentation and I am very new to Eclipse JDT API. I am trying to write a script which can run Server and several Clients with just one click using Escripts. Server and…
Nikolay Kuznetsov
  • 9,467
  • 12
  • 55
  • 101
2
votes
2 answers

Unable to start RabbitMQ: undefined function rabbitmqctl_escript:main/1

I would like to start RabbitMQ installed as JFrog Xray and I get: -bash-4.2$ /opt/jfrog/xray/app/third-party/rabbitmq/escript/rabbitmqctl escript: exception error: undefined function rabbitmqctl_escript:main/1 in function escript:run/2…
bvamos
  • 773
  • 7
  • 10
2
votes
2 answers

Cannot get erlang escript exit code if the code is not 0

According to the manual of erlang http://erlang.org/doc/man/escript.html: If the main/1 function in the script returns successfully,the exit status for the script is 0. If an exception is generated during execution, a short message is printed and…
yao
  • 23
  • 3
2
votes
1 answer

dynamic array with n rows and columns

I have to read an excel which can have 'n' rows and 'n' columns and store the data in an array for processing. For example the below: Author Book No Value ABC A 1 100 DEF D 2 20 I want to take the headers in…
Anna Joel
  • 107
  • 3
  • 14
2
votes
1 answer

Erlang escript launching application with start parameters

Currently my Erlang application is started within an escript (TCP server) and all works fine since it uses the default port I provided. Now I want to pass the port via the escript to the application but I have no idea how. (The app runs a…
SharkBytes
  • 211
  • 4
  • 18
1
vote
4 answers

Responsive Design - How not to load certain scripts?

Have finally got a responsive site working (of a fashion). What I want to do now is reduce what scripts are loaded on the mobile devices, so that they load faster. The scripts are redundant on the mobiles so it seems a good place to start. Is there…
1
vote
1 answer

How to let escript to use user's .erlang file?

I have use erlang 21 version. When call "erl", it will run user's .erlang file for loading library's ebin file. When running the following script by escript, it will not call. #!/usr/bin/env escript %% -*- erlang -*- %%! -sname factorial -mnesia…
Chen Yu
  • 3,955
  • 1
  • 24
  • 51
1
vote
1 answer

Can an escript invoke another escript function?

a.escript: main(_)-> b:read_config(). b.escript: -module(b). %% function exported read_config()-> %% read file io:format("hh~n"). If I convert the b.escript to b.erl and compile it to b.beam, it works. But I don't want to compile…
IclodQ
  • 101
  • 4
1
vote
1 answer

How do I send flags to the erlang vm using :emu_args?

I want to send arguments to the erlang vm, but 'emu_args: "+A32"' appears after the "-escript main parallel_tree_walk_escript" and appears to become arguments for the elixir program instead of affecting the erlang VM. Without 'emu_args: "+A32"', the…
1
vote
1 answer

Alternative to Siebel's BrowserScript function ShowModalDialog() to work on Chrome

What is the alternative to Siebel's BrowserScript function ShowModalDialog() to launch a HTML page from Siebel on Chrome? The method is deprecated on Chrome, FireFox. It works on IE, but Chrome users get an error message. My code: function…
KiranM
  • 1,306
  • 1
  • 11
  • 20
1
vote
0 answers

Making rebar on cygwin, escript not found

I'm trying to make rebar on Cygwin using make command. I have rebar cloned from repository and I'm trying to make it. I'm getting this error message: Sergey@PackardBell /cygdrive/c/Users/Sergey/Documents/Erlang/rebar $ make ./bootstrap /usr/bin/env:…
Sergey Ovchinnik
  • 472
  • 4
  • 16
1
vote
1 answer

Why does escript outputs different result?

It's a simple and well-known test script: -module(processes). -compile(export_all). max(N)-> Max=erlang:system_info(process_limit), io:format("the max processes is ~p ~n",[Max]), statistics(runtime), statistics(wall_clock), …
kingluo
  • 1,679
  • 1
  • 13
  • 31
1
vote
4 answers

remove special characters from text

I am trying to remove special characters from a given text. I've tried to replace it with: var stringToReplace = 'ab風cd � abc 123 € AAA'; var newText = stringToReplace.replace(/[^\d.-]/g, ''); but it's not working. I want that the newText will…
Bakbuk
  • 31
  • 2
1
2 3