[comp.os.vms] How do I get information about a process's default directory?

CADS_COLE@GALLUA.BITNET ("Kevin Cole at Gallaudet U. Washington DC") (05/24/88)

Date sent:  24-MAY-1988 10:26:47

A few weeks back LTL@CUGSBVAX.BITNET posted a rather nice clock program which
would use the last line of an IBM PC running KERMIT.  It displayed all sorts of
goodies besides the time and date (memory, CPU, number of jobs, etc.)

Now I am trying to mess it up ;-)

The Joe Average user in this office would prefer to see his/her default
directory and the date and time (rather than the system statistics).  The
original version runs as a spawned sub-process.

Is there a way for the sub-process to "keep an eye" on the parent that spawned
it and obtain the parent's default directory?  It would seem like there should
be an easy non-priviledged way to do this, but I really don't know VAX system
services at all.

Lastly, I keep trying to add LIB$DISABLE_CTRL (I think I spelled that right)
into the FORTRAN program.  I don't want the parent's Control-Y's and -C's to
interrupt the spawned process.  (I tried SPAWN/INPUT=NL: but it seemed unhappy
with that.)  Am I misunderstanding how LIB$DISABLE_CTRL functions?  (As I
recall, I was doing something like:

        INTEGER*4 ALL/-1/

        CALL LIB$DISABLE_CTRL (ALL)

(I'm more interested in the Default directory problem than the Control-Y
problem.)

Thanx all.

-------------------------------------------------------------------------------
Kevin Cole      <Flatline>              BITNET: KJCOLE@GALLUA.BITNET
Center for Assessment and                               or
Demographic Studies  (CADS)                     CADS_COLE@GALLUA.BITNET
Gallaudet Research Institute  (GRI)     UUCP: ...!psuvax!gallua.bitnet!kjcole
Gallaudet University                    CompuServe: 76167,1406
Washington, D.C.  20002
(202) 651-5575

             "Hey Rocky!  Watch me pull a rabbit out of my hat!"