All our scripts reside in a group that has 'access=(r,w,a,l,s:cr;x:any)'. This prevents users from looking at the contents via the :help <scriptname> command. They can only see the help text if they supply a question-mark (?) as the first parameter. Using this method you can have imbeded passwords/lockwords, etc that are kept safe.
regards,
Robert W.Mills
Systems Development Manager
Windsong Services
(020) 8309 3604
HP-3000 Systems Discussion wrote:
> (in my non-guru experience)
> as others have noted, the way to display a help-text is to use a
> "help" or "?" parameter (with a default-value), it does, however, not
> work with the
>> help command.
> To disable the :help-commands helpful feature of listing a
> commandfile, you can use the "option nohelp" option.
>
> hth
>
> /per
>
> --------------------------------------------------
> Per Östberg / [log in to unmask]
> tel 08-58581213 / fax 08-58587710 / mob 070-4840253
> LabMedicin-IT
> Karolinska Universitetssjukhuset, Huddinge
> C1 56 / 141 86 HUDDINGE
> --------------------------------------------------
>
>
> HP-3000 Systems Discussion <[log in to unmask]> skrev 2004-08-25
> 20:59:12:
>
>> I wrote a command file includeing a bit of long CI code. When I
>> type :help startpro my return is a print out of the startpro.command
>> file.
>>
>> I was wondering if I could change that so when I type help
>> startpro it just gives a breif description of the useage, and
>> not a print out of the whole script?
>>
>> Any help would be much appricated :)
>>
>> Thanks,
>> Gehan G.
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|