Progress
Developer’s Toolkit


_tlr Module

Changes the default values of environment variables as defined in various scripts.

SYNTAX

_tlr var-name replace-value file-name ... 

_tlr var-name replace-value -< file-list 

The first syntax format processes one file at a time. The second processes a list of files read from a file.

PARAMETERS AND QUALIFIERS

var-name

A constant character string that identifies the environment variable whose value you want to modify.

replace-value

A constant character string that identifies the new default value of the environment variable.

file-name

The name of the file in which you want to modify the default value of the environment variable.

file-list

The name of a file containing a list of filenames in which you want to modify the value of the environment variable.

EXAMPLE

Several of the scripts provided with Progress and the Toolkit name the DLC environment variable as follows:

DLC=${DLC-/usr/dlc} 

In this example, if the value of the DLC environment variable has been defined, the script uses the value of that variable. Otherwise, it uses /usr/dlc as the value of DLC.

To change the default value of the DLC variable to /tmp/dlc in a script named test.dat, use this command:

_tlr DLC /tmp/dlc test.dat 

This command changes the environment variable line in test.dat from:

DLC=${DLC-/usr/dlc} 

to:

DLC=${DLC-/tmp/dlc} 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095