[Info-vax] Porting logical name applications to Unix

Arne Vajhøj arne at vajhoej.dk
Fri Sep 25 21:13:39 EDT 2009


JF Mezei wrote:
> Ok, this is a generic question.
> 
> Say I have a VMS application that uses logical names to point to files,
> devices etc.
> 
> When porting to a Unix system, is the following the best way to mimic
> this : ?
> 
> - use getenv to translate a symbol to some value stored in a local variable
> - use that variable instead of a quoted string when calling the file
> open, or open some serial device or whatever ?
> 
> Or is there a better or different way to mimic logical names which most
> Unix based people would use ?

That would be it.

But you would only use a few of them and instead put the
majority of the paths in a text config file.

Arne



More information about the Info-vax mailing list