NEWLINK

Examples

The following tree structure will be used to construct the examples that follo w it. Assume that the CWD is /A CCT1/PUB.

 

 

 

ROOT

 

 

 

 

 

--------------

-------------

 

 

 

 

 

 

 

 

 

 

 

ACCT1

 

dir

SOFTWARE

 

 

 

 

/ \

 

 

 

 

---------------

f1

f2

------------------

 

 

 

 

 

 

 

 

PUB

dir1

 

PUB

 

CODE

 

 

/

\

 

 

 

---------

file1

file2

 

ACCTORG -----------------------

 

 

 

 

 

ACCTUDC

FILE3

 

 

 

COMMON

TERMIO

COMPALL

dir2

/ \ f1 f2 dir3

To create a symbolic link named PAYCODE to the ￿le PAYROLL.CODE.SOFTWARE, enter the following command:

:NEWLINK LINK=PAYCODE; TO=PAYROLL.CODE.SOFTWARE

or optionally use the positional parameters and enter

:NEWLINK PAYCODE, PAYROLL.CODE.SOFTWARE

In this example, the ￿le P AYCODE.PUB.ACCT1 will be created as a symbolic link to ￿le PAYROLL.CODE.SOFTWARE. The user no w can access PAYROLL.SAFE.SOFTWARE through PAYCODE. For example, the user may enter the following command:

:PRINT PAYCODE

This command will prin t the contents of the ￿le PAYROLL.CODE.SOFTWARE given that this ￿le allo ws read access to the user.

To create a symbolic link named FARFILE in PUB.ACCT1 that references /SOFTWARE/CODE/dir2/f1, en ter the following command:

:NEWLINK LINK=FARFILE; TO=/SOFTWARE/CODE/dir2/f1

2-166 MPE/iX Commands