That reminds me: on OS X, I sometimes use a shell script like this:
#!/bin/sh
exec /Applications/j64-803/bin/jconsole "$@"
This particular example offers no advantage over a symbolic link, but
if you want variations on a theme, scripts start being nice.
Thanks,
--
Raul
On Tue, Mar 3, 2015 at
Very nice!
I did run into a little frustration in OS X Terminal - where jconsole
is by default a tarpit of java stuff. So either the path to jconsole in
the J bundle, or an alias (I do a symbolic link of ja to be jconsole)
removes my angst. Examples (in reverse order):
$ ja -js 'echo %. i.2
Actually, it occurs to me that there's a simpler approach, which might
sometimes be wiser - arrange for standard input to be something other
than the keyboard. For example, under unix:
:|jconsole -js 'echo 1+1'
You'll get a prompt before the exit, but you can avoid that with an
explicit exit stat
gramm...@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" "
b=.3 "(exit@] ] echo @:(b*c*]) :: _:) a"
- Original Message -
From: "Chernin, Nadav"
To: "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 ano
jconsole -js a=.23 b=.3 "echo a*b*c" "exit''"
exits successfully for me - that last echo a*b*c thing, with undefined
c is a verb which does not get evaluated, so it's ignored. But here's
an example which fails to exit:
jconsole -js "a=.1 2 3" "b=.4 5" "echo a*b" "exit''"
Anyways, I think you wan
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