Current menu script

Jeff Harrison jeffaharrison at yahoo.com
Wed Feb 1 17:24:16 PST 2006


--- Kenneth Brody <kenbrody at bestweb.net> wrote:

> Quoting Jeff Harrison (Wed, 1 Feb 2006 14:19:33
> -0800 (PST)):
[snip]

> > /appl/fp/dclerk lib -s1 -z logger -r 1E2
> >
> > I was hoping that getenv("0") would return the
> name of
> > the script, but it doesn't.  It just returns "".
> 
> That's because there is no environment variable
> named "0".

But, when I echo $0 from within a shell script I do
get the name of the shell script.  What I was not
seeing was that I needed to pass the $0 on the command
line.

> 
> > I also tried @argv("0") and @argv("1") but no luck
> > there either.
> 
> That's because @argv["1"] would be the path to
> dclerk.

Yes, that is what I found.

...
[snip]

Thanks, as I mentioned to Bob, I have it working now.

Jeff Harrison
jeffaharrison at yahoo.com

Author of JHExport and JHImport.  The easiest and
fastest ways to generate code for filePro exports and
imports.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Filepro-list mailing list