REMPRTSMB V1.2 (a symbiont that directs its output to a RMS `file' - possibly via DECnet) follows in 1 VMS_SHAREd part. REMPRTSMB V1.2 contains no functional changes over versions V1.0 and V1.1. REMPRTSMB V1.2 should work on VAX/VMS V5.0 .. V5.5-2 (and likely on V6), and also on OpenVMS (Alpha) V1.5, with the possible exception of VMS A5.5-n (which I've never seen). Getting it to run under VAX/VMS V4 will require a little change (see below). To use: (a) create REMPRTSMB.EXE $ cc remprtsmb $ cc itrmlen $ link/notrace remprtsmb,itrmlen,sys$input/opt SYS$SHARE:VAXCRTL/share (b) copy EMPRTSMB.EXE 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 was 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 The VMS_SHAREd archive has two more files, GENDEF.COM and DEFGBLINI.MAR. GENDEF.COM (which uses DEFGBLINI.MAR internally) will allow the curious to re-create the .H files distributed with the kit, like: $ @GENDEF PSMDEF ! creates []PSMDEF.H Actually, pretty old .H files will be o.k. (even on Alpha), since REMPRTSMB is supposed to only use "stable" symbolic definitions. Enjoy, Wolfgang J. Moeller, Tel. +49 551 201516 or -510, GWDG, D-37077 Goettingen, F.R.Germany PSI%(0262)45050352008::MOELLER Disclaimer: No claim intended! |