Charles,

I have been fiddling with the shell scripts in this thread on my Mac,
too.Your comment finally returned me to the correct permutation of
changes for my attempts. I also was able to use just ./jtest after I
altered the first line of testj as shown next.

[10:44am brian~/j602-user]% cat jtest
#!/Users/brian/j602/bin/jconsole
stdout 'hello', LF
exit''

[10:44am brian~/j602-user]% ./jtest
hello

I think your example requires that jconsole be given a unix link alias
to jc as I think Joey demoed in the following link. (Joey, used ja,
not jc, and usr/bin, not usr/local/bin .)

I am reporting these details so that other Mac users may get on the
right path with these unix commands, too.

On Sat, Aug 22, 2009 at 10:04 AM, Charles Turner<[email protected]> wrote:
> On Aug 22, 2009, at 1:41 AM, bill lam wrote:
>
>> J expects shell file to have an extension in order to work correctly.
>
> (You mean jconsole, correct?)
>
> Not so on Darwin:
>
> jtest:
> #! /usr/local/bin/jc
> stdout 'hello', LF
>
>
> -rw-r--r--@  1 cturner  staff     40 Aug 22 09:56 jtest
> drwxr-xr-x   5 cturner  staff    170 Aug  7 23:05 sndan-doxy
> spinoza:~/Desktop$ chmod 755 jtest
> spinoza:~/Desktop$ ./jtest
> hello
>    exit ''
> spinoza:~/Desktop$
>

-- 
(B=) <-----my sig
Brian Schott
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to