I suggest that, if you're running more than very few J statements, you
should put them in a script file and load it.  Once you start working with
script files, you have the full range of J's capabilities available to you
and you have a "stationary target" on which to focus.

On Mon, Mar 2, 2015 at 8:25 AM, 'Pascal Jasmin' via Programming <
programm...@jsoftware.com> wrote:

> this should work if your error occurs inside the verb part (ie, as long as
> c is the missing variable, and c is placed inside the fork, it should
> create the error.  if c was put where a is then :: won't trigger.  Assumes
> that _ is a meaningful error return... untested.
>
> jconsole -js a=.23 b=.3 "(exit@] ]  echo @:(b*c*]) :: _:) a"
>
>
>
> ----- Original Message -----
> From: "Chernin, Nadav" <chern...@corning.com>
> To: "programm...@jsoftware.com" <programm...@jsoftware.com>
> Cc:
> Sent: Monday, March 2, 2015 4:40 AM
> Subject: [Jprogramming] Running script from jconsole
>
> Hi, all
> I use J as script language from another language through jconsole
> Like this:
> jconsole -js a=.23 b=.3 "echo a*b" "exit''"
> My problem is when script is wrong console application don't exit
> Like in this example
>
> jconsole -js a=.23 b=.3 "echo a*b*c" "exit''"
> What can I do?
> Thanks
>
> Nadav Chernin
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to