I think you are referring to http://rosettacode.org/wiki/Multiline_shebang#J

Thanks,

-- 
Raul



On Tue, Jul 29, 2014 at 11:58 PM, bill lam <bbill....@gmail.com> wrote:

> IIRC about 2 decades ago, the file extension for j scripts was "js" but
> later java became popular and they used the same file extension. J had to
> give in and changed to "ijs".
>
> for debian version the first line is standardized to
> #!/user/bin/ijconsole
>
> Raul should have an alternate way that enable the script to be executed for
> both shell and j, IIRC.
> On Jul 30, 2014 10:34 AM, "Raul Miller" <rauldmil...@gmail.com> wrote:
>
> > Note that the debian version of J uses ijconsole to avoid the conflict
> > with jconsole.
> >
> > Thanks,
> >
> > --
> > Raul
> >
> > On Tue, Jul 29, 2014 at 4:10 PM, Ric Sherlock <tikk...@gmail.com> wrote:
> > > If you have java installed on your system then a program called
> jconsole
> > is
> > > probably already in your path. I've taken to naming my symbolic link:
> jc
> > >
> > >
> > > On Wed, Jul 30, 2014 at 7:36 AM, chris burke <cbu...@jsoftware.com>
> > wrote:
> > >
> > >> An alternative to renaming the J installation folder is to create a
> > >> symbolic link to jconsole, and reference that instead, e.g.
> > >>
> > >> ~$ ln -s j64-802/bin/jconsole
> > >> ~$ ls -l jconsole
> > >> lrwxrwxrwx 1 chris chris 20 Jul 29 12:31 jconsole ->
> > j64-802/bin/jconsole
> > >>
> > >> Also, if you create the symbolic link on your path, then you can
> simply
> > >> enter "jconsole" in the terminal to run it.
> > >>
> > >>
> > >>
> > >> On Tue, Jul 29, 2014 at 8:46 AM, Don Guinn <dongu...@gmail.com>
> wrote:
> > >>
> > >> > It was not a problem getting around the minus sign problem. I simply
> > >> > renamed the J directory from j64-802 to j64_802 and everything
> worked
> > >> fine.
> > >> > What concerned me was that the default name chosen for the 64 bit
> > version
> > >> > causes hashbang to fail. It is not much of a problem, probably not
> > worth
> > >> > fixing.
> > >> >
> > >> > Thank you for the lead on how to handle the "Open With" question. I
> > will
> > >> > study it. I am still a novice to Linux. So I apologize for asking
> > >> questions
> > >> > for which I should already know the answer.
> > >> >
> > >> >
> > >> > On Tue, Jul 29, 2014 at 9:05 AM, chris burke <cbu...@jsoftware.com>
> > >> wrote:
> > >> >
> > >> > > > Another question is how to find the link target in Linux. In
> > windows
> > >> > ARGV
> > >> > > is set to the link target, where in Linux it is set to the name of
> > the
> > >> > > link.
> > >> > >
> > >> > > In both cases, ARGV is defined as the call used to start J. If you
> > want
> > >> > to
> > >> > > find jconsole, it should be in ~install/bin.
> > >> > >
> > >> > > > Also, in the properties of a file in Linux one can select the
> > >> > application
> > >> > > to handle the file with the "Open With" option. Is there a way to
> > add
> > >> > the J
> > >> > > executables to that list?
> > >> > >
> > >> > > You should google "open with" for your distribution, e.g.
> > >> > > http://community.linuxmint.com/tutorial/view/1314
> > >> > >
> > >> > >
> > >> > > On Tue, Jul 29, 2014 at 7:23 AM, Don Guinn <dongu...@gmail.com>
> > wrote:
> > >> > >
> > >> > > > Trying the example script in help/user/hashbang.htm and got the
> > >> > following
> > >> > > > error:
> > >> > > >
> > >> > > > don@ubuntu:~/j64-802-user/temp$ ./1.ijs
> > >> > > > |domain error: script
> > >> > > > |   #!/home/don/j64-    802/bin/jconsole
> > >> > > > |[-0] /home/don/j64-802-user/temp/./1.ijs
> > >> > > >
> > >> > > > Probably works fine for 32 bit version of J as the minus sign is
> > not
> > >> in
> > >> > > the
> > >> > > > file name.
> > >> > > >
> > >> > > > Another question is how to find the link target in Linux. In
> > windows
> > >> > ARGV
> > >> > > > is set to the link target, where in Linux it is set to the name
> of
> > >> the
> > >> > > > link.
> > >> > > >
> > >> > > > In Windows:
> > >> > > >    ARGV
> > >> > > >
> > >> > > > ┌────────────────────────┐
> > >> > > >
> > >> > > > │C:\J\j64-802\bin\jqt.exe│
> > >> > > >
> > >> > > > └────────────────────────┘
> > >> > > >
> > >> > > > In Linux:
> > >> > > >
> > >> > > >   ARGV
> > >> > > >
> > >> > > > ┌───────────────────────┐
> > >> > > >
> > >> > > > │/home/don/Desktop/J8 Qt│
> > >> > > >
> > >> > > > └───────────────────────┘
> > >> > > >
> > >> > > > ("J8 Qt" is the name of my shortcut to start J.)
> > >> > > >
> > >> > > >
> > >> > > > Also, in the properties of a file in Linux one can select the
> > >> > application
> > >> > > > to handle the file with the "Open With" option. Is there a way
> to
> > add
> > >> > > the J
> > >> > > > executables to that list?
> > >> > > >
> > >> ----------------------------------------------------------------------
> > >> > > > For information about J forums see
> > >> http://www.jsoftware.com/forums.htm
> > >> > >
> > ----------------------------------------------------------------------
> > >> > > For information about J forums see
> > http://www.jsoftware.com/forums.htm
> > >> > >
> > >> >
> ----------------------------------------------------------------------
> > >> > For information about J forums see
> > http://www.jsoftware.com/forums.htm
> > >> >
> > >> ----------------------------------------------------------------------
> > >> For information about J forums see
> http://www.jsoftware.com/forums.htm
> > >>
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> 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