> -----Original Message-----
> From: Martin Vorlaender [mailto:[EMAIL PROTECTED]]
> Sent: 13 June 2000 15:15
> To: [EMAIL PROTECTED]
> Subject: RE: Beginner's question
> 
> 
> Dan Sugalski <[EMAIL PROTECTED]> wrote:
> >Oleksii Krykun wrote:
> >> I installed "perl" symbol into DCLTABLES.
> >> But WWWEXEC doesn't check it:
> >>
> >> $   if f$type(perl) .eqs. "" .and. -
> >>         f$search("dcl$path:perl.exe") .eqs. "" then perl =
> >> "$www_system:miniperl"
> >>
> >> So f$type(perl) = "" and logical dcl$path is not defined in 
> >> VMS 5.5. I get perl=www_system:miniperl.
> >> I must remove this check from WWWEXEC.COM. Is it true?
> > 
> > Nah. Just change the "$www_system:miniperl" to 
> > "perl_root:[000000]perl" and 
> > you should be OK.
> 
> Removing the check will be working ok also (because WWWEXEC then
> assumes the symbol/command "perl" is defined and calls it).
> 

Just wondering: is there a fool-proof way to detect if a command exists in
DCLTABLES?

The f$type() lexical works fine for symbols, and the dcl$path search will
find other commands, but as it stands, the WWWEXEC.COM file will not work if
Perl has been installed in DCLTABLES.

It would be nice if it could detect this - it's a pity to have to edit it.

One could try "perl -v" and check for %DCL-W-IVVERB, but that is a bit messy
(and expensive ?).

Is there a generic way of doing this?

Sorry, this is a bit off-topic (but it might come in handy for configuring
Perl, I guess!)

-- 
Sebastian Bazley <[EMAIL PROTECTED]>
The opinions expressed herein are my own, and are not necessarily endorsed
by my employer ...

___________________________________________________________________________
This email is confidential and intended solely for the use of the 
individual to whom it is addressed. Any views or opinions presented are 
solely those of the author and do not necessarily represent those of 
Sema Group. 
If you are not the intended recipient, be advised that you have received this
email in error and that any use, dissemination, forwarding, printing, or 
copying of this email is strictly prohibited.

If you have received this email in error please notify the Sema Group
Helpdesk by telephone on +44 (0) 121 627 5600.
___________________________________________________________________________

Reply via email to