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