Is there anyway to pass a flag to jconsole that tells it to exit after
executing all the commands in the script?

I don't want to put exit'' at the end of all my scripts


On 5/17/07, Raul Miller <[EMAIL PROTECTED]> wrote:
On 5/17/07, Terrence Brannon <[EMAIL PROTECTED]> wrote:
> Sample execution:
> shell> ./jscript 4
> 3 added to this number is 7
>
> Also, what is the name of the program in the J distribution which
> would run such a script?

jconsole

Useful pages:
   http://www.jsoftware.com/jwiki/Guides/Standalone_Applications
   http://www.jsoftware.com/help/user/cmdline.htm
   http://www.jsoftware.com/help/user/hashbang.htm

(That last one is mostly for unix)

Also, in your above example, the number from the command line would be
   0".2{::ARGV

0 {:: ARGV would be the name of the j executable, and
1 {:: ARGV would be the name of your script, so
2 {:: ARGV is your first command line argument.

--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to