On Fri, 21 Aug 2009, Joey K Tuttle wrote:
> jconsole is failing to find profile.ijs and/or profilex.ijs - you can 
> avoid j looking by using .../bin/jconsole -jprofile

Not sure if it is related to jprofile, I changed the script verb to display its
argument and tested again

b...@debian:bin(master)$ jtest
+---------------------------------------------------------------+
|/home/bill/share/jsoftware/j602/addons//home/bill/bin/jtest.ijs|
+---------------------------------------------------------------+
|file name error: script
|       0!:1 y[4!:55<'y'[[1!:2&2 y

apparently J treat the shell script name jtest without an extension as j script
file and tried to run a non existed file with funny path name. 

I then add a file extension

b...@debian:bin(master)$ cp ~/bin/jtest ~/bin/jtest1.sh
b...@debian:bin(master)$ jtest1.sh
+------------------------+
|/home/bill/bin/jtest1.sh|
+------------------------+
   #!/home/bill/share/jsoftware/j602/bin/jconsole
# !/ home/ bill/ share/ jsoftware/ j602/ bin/ jconsole
   stdout 'hello', LF
hello
hello


bingo!  J expects shell file to have an extension in order to work correctly.
Not sure if this is resulted from a bug in J library script or J engine itself
or somehow I amended some J system scripts incorrectly.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to