This document describes the procedure required to build the Software Tools Mail System for RSX-11M[+]. For RSX-11M, it is necessary that the background processing support driver and task be built, as per the description at the end of the TOOLGEN procedure. If this has not yet been done, please consult the notes at the end of the TOOLGEN dialogue. A command procedure for building this stuff does not exist. As such, I have listed below a pseudo-command procedure which has proven successful on several occasions. Please replace references to [BIN], [USR], [MSG], and [MAN] with the appropriate UIC values you selected during TOOLGEN; also replace [CURRENT] with the value of the working UIC you select in the first step below. .nf >Pick a convenient working directory and change to it >Fetch contents of [307,36] into current directory >SHL % ar x distn.w % cat mailgen.src >mailgen.sh % cat netlist.src >netlist % cat mailsym.src >mailsym % # You must edit mailsym to change to the correct local host name % # look for the symbol LOCAL_HOST_NAME and change the name j % # to whatever your decnet host name is. % # you will also need to make the same change to the file `~msg/lnames' % # when you have finished this pseudo-command file. % # % cat ttynotasm.cmd % # if any of the devices or UICs for EXEMC or RSXMC are incorrect % # edit the file ttynotasm.cmd to reflect the correct values % # if you are not running RSX v4.0, then you must delete the first line % # of ttynot.mac, also % # % mailgen ; # take a break, as this takes ~1 hour to complete % # % # if any of the task builds resulted in "illegal memory limits" errors, % # rebuild each as follows: % ratfor file.r >file.f; noresbld file.f -lmsg; rm file.f file.obj % # repeat this for each problem task % cat resolve.sh >~bin/resolve.sh % ar t distn.w | rm % cat ~man/s1 >s1 % manupd s1 util.dar % manupd sfiles files.dar % manupd ssys sys.dar % asam i1 % asam ifiles % asam isys % ar t support.w | ch "%?*$" "acat support.w`& >~msg/&" | sh -v % pip st0:[BIN]*.*=*.tsk; pip *.tsk@;*/de % rm ~man/s1 ~man/i1 % pip st0:[MAN]*.*=s1.,i1.,sfiles.,ifiles.,ssys.,isys. % rm s1 i1 sfiles ifiles ssys isys % pip st0:[BIN]*.*@;*/pr/sy:rwed/ow:rwed/gr:re/wo:re % pip st0:[MAN]*.*@;*/pr/sy:rwed/ow:rwed/gr:re/wo:re % pip st1:[MSG]*.*@;*/pr/sy:rwed/ow:rwed/gr:re/wo:re % # If this is RSX-11M+, you will need to execute the following commands % ar xv virtrm.w % # optionally edit virtrm.r to reflect the account and password under % # which the mail system will run % rc -v '-xogblpat=virtrm:r$fmsk:1' virtrm.r % # edit startmail.cmd to reflect the values of [BIN], [USR], and [MSG] % # you will need to remove the comments if VMS gateway support was selected % # and move a copy of it into LB:[1,2] % # it will also be necessary to define the appropriate DECNET objects as % # per ncpstuff.cmd % logout .fi The following modifications to [1,2]startup.cmd will be necessary: .sp .in +3 .ti -2 M After the background terminal driver has been loaded and BSPAWN has been started running, you should execute the following command to start the system running .sp >SHL -C MCRBCK @LB:[1,2]STARTMAIL.CMD .sp .ti -3 M+ The task virtrm.tsk should be installed as VIRTRM, and started running via the command .sp >RUN VIRTRM 1T .sp Note that virtrm creates a virtual terminal and issues one command to the virtual terminal of the form >HELLO ACCOUNT/PASSWORD You should edit virtrm.r to reflect the account and password under which you wish to run the mail system. It is also necessary to issue the following command as the last line of the LOGIN.CMD file in the home directory of that account >@LB:[1,2]STARTMAIL.CMD .in -3 Finally, there is a slight inconvenience in terminating the system during system shutdown. It seems that SHUTUP kills tasks at logged in terminals BEFORE it invokes LB:[1,2]SHUTUP.CMD. As a result, I have found it necessary to shut down my system with the following command file, named LB:[1,2]SHUTDOWN.CMD .nf .TESTFILE LB:[1,2]STOPMAIL.CMD .IF = 1 @LB:[1,2]STOPMAIL .IFACT BSPAWN ABORT BSPAWN .IFACT VIRTRM ABORT VIRTRM .XQT RUN $SHUTUP .fi As you have probably guessed, the system is shut down via an @LB:[1,2]SHUTDOWN command. Good luck with the system Joe Sventek .br 21 October 1983