From: CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX" 25-JUN-1991 05:33:36.97 To: ARISIA::EVERHART CC: Subj: REMPRTSMB following in 3 parts From: RELAY-INFO-VAX@CRVAX.SRI.COM@SMTP@CRDGW2 To: Everhart@Arisia@MRGATE Received: by crdgw1.ge.com (5.57/GE 1.101) id AA05714; Tue, 25 Jun 91 05:21:09 EDT Message-Id: <9106250921.AA05714@crdgw1.ge.com> Received: From CUNYVM.CUNY.EDU by CRVAX.SRI.COM with TCP; Tue, 25 JUN 91 02:10:14 PDT Received: from DGOGWDG1.BITNET by CUNYVM.CUNY.EDU (IBM VM SMTP R1.2.2MX) with BSMTP id 5971; Tue, 25 Jun 91 05:09:53 EDT Received: from dnet.gwdg.de by DGOGWDG1.BITNET (Mailer R2.07) with BSMTP id 2229; Tue, 25 Jun 91 11:06:04 MSZ Date: Tue, 25 Jun 1991 11:06:03 +0200 From: "GWDGV1::MOELLER" To: info-vax@sri.com, vmsnet-sources@ucbvax.berkeley.edu Subject: REMPRTSMB following in 3 parts Due to popular demand, I'll post REMPRTSMB (a symbiont that redirects its output to a `file' - possibly via DECnet) in 3 parts. To use: (a) create REMPRTSMB.EXE $ cc remprtsmb $ macro itrmlen $ link/notrace remprtsmb,itrmlen,sys$input/opt SYS$SHARE:VAXCRTL/share (b) copy it to SYS$SYSTEM (c) $ init/queue ... /proc=REMPRTSMB - /SEPARATE=(FLAG,TRAILER) - /on= where the /SEPARATE specification is absolutely necessary - the symbiont uses the "separation" stuff to detect start and end of print jobs, it will not output any separation pages (but will do /FLAG pages as you like). (d) define the `' above like $ define/system "node::dev:[dir]/opt" to point to the place where the symbiont's output should go, together with various options that determine the output file names. Actually a GROUP 001 logical name will do. Without an option, all output files will be named VAX.PRT . Possible options ('/opt') are: /USERNAME ... use VMS username (instead of "VAX") for file name. /JOBNAME ... if JOB_NAME has legal "fff.vvv" format, use it for output filespec (neither "fff" nor "vvv" may be void); if it is just "fff", output filespec => "fff.PRT". /RSX ... require RSX-compatible JOB_NAME, or otherwise force output filespec into RSX-compatible format. /SPOOL ... creates output file with "print/delete" option. I just *hope* that /SPOOL works; the VMS site which we feed via this symbiont liked it better to have the output go directly to their "LP:" (you might think of other `dev:'ices, the symbiont is using plain RMS). (e) start the queue ... BTW, REMPRTSMB is multi-threaded, and therefore was an exercise in *asynchronous* RMS operations (part of which is new with VMS V5). Better don't use it on VMS V4, because there was a bug in the symbiont /restart logic which would make REMPRTSMB lose re-started print jobs. If you don't mind, you can get it to work under V4 (I did) by removing the line which says #define ASY_FAB Enjoy, Wolfgang J. Moeller, GWDG, D-3400 Goettingen, F.R.Germany | Disclaimer ... Bitnet/Earn: U0012@DGOGWDG5 Phone: +49 551 201516 | No claim intended! Internet: Moeller@gwdgv1.dnet.gwdg.de | This space intentionally left blank.