T.R | Title | User | Personal Name | Date | Lines |
---|
670.1 | Job or Group Logical | KBOMFG::COLDITZ | Peter Colditz @KBO | Wed Jan 20 1988 02:36 | 11 |
| A detached or spawned process creates new process logical tables.
Therefore your logical will not be found anymore.
If you define $ def/job WAIT$TIME 10 a spawned process will be able
to find the logical in the JOB Table.
If you define $ def/grou WAIT$TIME 10 a detached process will find
the logical in the logical GROUP. You need group privileges for the
definement.
Peter
|
670.2 | clarification | CSC32::S_LEDOUX | Scott LeDoux -- 8-522-4953 -- CXO3/2F2 | Wed Jan 20 1988 10:45 | 2 |
| Specifically, you need GRPNAM privilege to define logical names
in the GROUP table.
|
670.3 | $ def /group rem$wait | FOO::BHAVNANI | Must be the compiler... | Wed Jan 20 1988 13:03 | 2 |
| That works beautifully! Tnx guys!
/ravi
|
670.4 | What about ACL on LNM$GROUP? | MDVAX3::COAR | M��se Choreographer | Thu Jan 21 1988 11:58 | 7 |
| > Specifically, you need GRPNAM privilege to define logical names
> in the GROUP table.
Can't you also create logical names in the group table if the ACL
permits?
#ken :-)}
|
670.5 | | SMAUG::MENDEL | Pessimists Always Get Good News. | Thu Jan 21 1988 12:24 | 3 |
| If you created your own table for logicals to pass to a detached
process, say named "FOO_TABLE", could the other process find it
by using $TRNLNM( ,TABLE=FOO_TABLE )?
|
670.6 | Vanilla trnlog() | FOO::BHAVNANI | Must be the compiler... | Fri Jan 22 1988 00:47 | 7 |
| I suppose it could, though my version of trnlog() is nothing but a
simple-minded interface to SYS$TRNLOG with defaults, which causes
the system, group, job and process tables to be searched (in that
order), until a match is found. If no match occurs, a null string
is returned.
/ravi
|
670.7 | Simple functions for obsolescence compatibility | MDVAX3::COAR | M��se Choreographer | Fri Jan 22 1988 14:04 | 17 |
| In order for the detached process to access the table, it would
have to be a shared table, which requires privileges.
Once you've overcome that, you would need to either use $TRNLNM
in the detached process, or else use $TRNLOG and ensure that the
logical name TRNLOG$_PROCESS_GROUP_SYSTEM was defined as your-table,
LNM$PROCESS, LNM$JOB, LNM$GROUP, LNM$SYSTEM in either the
LNM$PROCESS_DIRECTORY or LNM$SYSTEM_DIRECTORY logical name table.
If you use LNM$PROCESS_DIRECTORY, you'd have to use $CRELNM, so
why not use $TRNLOG directly? If you use LNM$SYSTEM_DIRECTORY,
you will affect [negatively] the performance of just about every
$TRNLOG done on the system.
If you can create the shared table, great - do so, and use $TRNLNM
to access it..
#ken :-)}
|