[comp.os.vms] vms mail utility

pep@MITRE-BEDFORD.ARPA (04/23/87)

Is there a callable routine to invoke vms mail?

Thank You in advance,

Patricia Patchett
DEC Systems Software
Mitre Corporation
Bedford, MA

healy@canisius.UUCP (Patrick Healy) (06/27/87)

Bruce G. Kahler asks how to get the Operator's attention, send him a message
and respond to that message from batch.

Bruce,

     What we do is create an account called OPERATOR and give it (at least) the
OPER privilege.  Then, in its login.com file we enable the Reply utility   
($REPLY/ENABLE).  We can then communicate between users and the Operator via the
REPLY/TO=nnn for operators and the request/reply for users.


The below program segment illustrates a method inwhich we use this feature:

$ ! This program copies a  user supplied file to tape.
$ !
$ BEGIN:
$   ALLOCATE MU: TAPE_DRIVE
$   IF $STATUS THEN GOTO COPY_FILE ! if all's ok then mount the tape
$   WAIT 00:05
$   GOTO BEGIN
$ !
$ COPY_FILE:
$   REQUEST/REPLY "Please mount tape #33453 on ''f$logical("TAPE_DRIVE")' then $REPLY"
$ ! The above line notifies the Console and waits until the Operator replies.
$   MOUNT TAPE_DRIVE 33453 
$   COPY LOGIN.COM TAPE_DRIVE:*.* /LOG
$   DISMOUNT MUA0:
$ EXIT


Hope this helps.  Good luck! 


 
-----------------------------------------------------------------------------
USMAIL:	Patrick Healy / Canisius College / 2001 Main St. / Buffalo, NY 14208
OFFICE: 42 55m 32s N / 78 51m 10s W / basement
VOICE:	(716) 883-7000 Extensions 440, 441, 446, 447 Eastern Time 
UUCP:	...!{decvax|watmath|allegra|rocksvax}!sunybcs!canisius!healy
 "					     ...!ames!canisius!healy
BITNET: HEALY@CANISIUS
CSNET:	healy%canisius@CSNET-relay
-----------------------------------------------------------------------------