TACL Reference Manual
UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual—429513-018
8-26
ATTACHSEG Command
ATTACHSEG Command
Use the ATTACHSEG command to load an existing TACL segment file into memory
and associate it with a directory so that TACL can gain quick access to its variables.
PRIVATE
specifies that the segment is to be opened for use by only one process (yours) and
that data can be written into it.
SHARED
specifies that the segment is to be opened in the read-only mode and that other
processes can open the segment for reading only.
file-name
is the name of a TACL segment file, created previously by a CREATESEG
command.
directory-name
is the name of a variable that is to be pushed and set to a directory of the variables
in the segment file.
Considerations
•
You cannot attach a segment that resides on another system.
•
You cannot attach more than 50 segment files.
•
TACL segment files have file code 440.
•
If access is PRIVATE:
°
You must have both read and write access to the segment file.
°
There is a delay while TACL reads the segment file. A segment file typically
contains unused space; TACL reads only the valid data within the file, not the
entire file.
°
The segment file remains open and unchanged until you issue a DETACHSEG
command for it. If for any reason TACL stops while updating the file during the
DETACHSEG operation, the file contents are unpredictable, and any future
attempts to attach the file will fail.
•
If access is SHARED, you must have at least read access to the segment file.
•
To display a table of information about all the segment files in use by your TACL
process, use the SEGINFO Command on page 8-168.
ATTACHSEG {PRIVATE | SHARED} file-name directory-name