In JHP as an example of CGI the script folder is treated specifically, by creating a pseudo-prefix: jpath '~CGI/file.ext' etc. It is done for cross-platform compatibility. Otherwise, platform and web-server specific CGI vars and paths are available through env vars.
--- Joey K Tuttle <[EMAIL PROTECTED]> wrote: > OK - I am dense and/or stubborn... > > I have read and tried various things with little happiness. > > What I want to be able to do is be in a working directory > (terminal session) and invoke jconsole (or jwd) and have > the j session in pwd. e.g. > > iMg5:~ jkt$ cd Music > iMg5:~/Music jkt$ pwd > /Users/jkt/Music > iMg5:~/Music jkt$ ls -l > total 0 > drwxr-xr-x 7 jkt jkt 238 Sep 29 21:05 iTunes > drwxrwxrwx 7 jkt jkt 238 Sep 2 2005 iTunes 2002.02.16 > iMg5:~/Music jkt$ ja > host 'ls -l' > total 0 > drwxr-xr-x 7 jkt jkt 238 Sep 29 21:05 iTunes > drwxrwxrwx 7 jkt jkt 238 Sep 2 2005 iTunes 2002.02.16 > > host 'pwd' > /Users/jkt/Music > > version '' > Binary: j601binc_darwin_powerpc > Library: j601libc > Help: j601hlpc > Engine: j601/2006-11-17/17:05 > ProductName: Mac OS X > ProductVersion: 10.4.10 > BuildVersion: 8R218 > java version "1.5.0_07" Java(TM) 2 Runtime Environment, Standard > Edition (build 1.5.0_07-164) Java HotSpot(TM) Client VM (build > 1.5.0_07-87, mixed mode, sharing) > > --- > In the past, I did this with a sym link of /usr/local/bin/ja > to jconsole - but in j602 that doesn't work. I rather object > to having to use: > > iMg5:~/Music jkt$ /usr/local/lib/j602/jconsole > host 'pwd' > /Users/jkt/Music > > or for that matter /User/jkt/jsoftware/jconsole > > .... > > If I create a /usr/local/bin/script such as the following: > > iMg5:~/Music jkt$ cat /usr/local/bin/jbeta > #!/usr/local/lib/j602/jconsole > > iMg5:~/Music jkt$ jbeta > host 'pwd' > /Users/jkt/Music > > Then I get part way back to what I had in j601 - but I have > lost the ability to pass in parms and file arguments... If > I use a shell script such as: > > iMg5:~ jkt$ cat /usr/local/bin/jb > #! /bin/bash > /usr/local/lib/j602/jconsole $* > > Then I can pass in file names, but I don't know how to invoke > a parameter e.g. -jconsole is there a way? > > I can't think of a way to do what I want with jwd (i.e. start > j.app in some directory other than the installation one) - is > there a way? > > Some of these issues are most important in CGI scripts (or at > least will take considerable rethinking there) I don't believe > my current ways of setting up Apache will work at all with j602 > but maybe Oleg or someone can suggest better ways than I am > currently doing it. > > - joey > > At 12:31 -0400 2007/09/29, Eric Iverson wrote: > >J602 does not use JPATH... env var. > > > >Please read Help|Release Hightlights and Help|User Manual|J602 > >Install for more information. > > > >Short answer is that J602 JFE finds the J directory that contains > >the JFE and then requires everything to be there (JFE, JE, > >profile.ijs, etc). > > > >Hardlinks to the JFE are not supported and symlinks to the JFE must > >be absolute paths. > > > >----- Original Message ----- From: "Joey K Tuttle" <[EMAIL PROTECTED]> > >To: "Beta forum" <[email protected]> > >Sent: Saturday, September 29, 2007 12:00 PM > >Subject: Re: [Jbeta] J602 installation > > > >>Actually, sigh, I spoke too soon. What really happened > >>was that it worked fine while my working directory was > >>/usr/local/lib/j602 - from any other directory, I got: > >> > >>iMg5:~ jkt$ jb > >>Load library /Users/jkt/libj.dylib failed.iMg5:~ jkt$ > >> > >>Even worse, I can't find a way to correct it. In past > >>releases I set /etc/bashrc to look like: > >> > >>iMg5:~ jkt$ cat /etc/bashrc > >># System-wide .bashrc file for interactive bash(1) shells. > >>if [ -n "$PS1" ]; then PS1='\h:\w \u\$ '; fi > >># Make bash check it's window size after a process completes > >>shopt -s checkwinsize > >> if ! echo $PATH | /usr/bin/grep -q "/usr/local" ; then > >> PATH=$PATH:/usr/local/bin/ > >> fi > >># For J users in bash > >>JPATHj602="/usr/local/lib/j602/" > >>JPATHj601="/usr/local/lib/j601/" > >>JPATHj504="/usr/local/lib/j504/" > >> > >>export PATH JPATHj601 JPATHj504 JPATHj602 > >> > >>and while it works for j601 and j504, no joy with j602. > >> > >>- joey > >> > >>---- > >> > >>At 20:29 -0700 2007/09/28, Joey K Tuttle wrote: > >>>I should have added that on my third installation > >>>(into /usr/local/lib/) things worked very nicely > >>>and a symbolic link in /usr/local/bin works "out > >>>of the box" (except for my missing personal profile). > >>> > >>>This is a very nice improvement - thanks. > >>> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ____________________________________________________________________________________ Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
