Article 3525 of vmsnet.sysmgt:
Path: nntpd.lkg.dec.com!pa.dec.com!decwrl!genmagic!sgigate.sgi.com!swrinde!newsfeed.internetmci.com!chi-news.cic.net!nntp.coast.net!lll-winken.llnl.gov!fnnews.fnal.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
Newsgroups: vmsnet.sysmgt
Subject: Re: can you point a Q to the nl: dev.
Date: 18 Feb 1996 10:35:43 GMT
Organization: HST Wide Field/Planetary Camera
Lines: 37
Distribution: world
Message-ID: <4g6vdv$rnd@gap.cco.caltech.edu>
References: <4fr2pc$khs$1@mhafc.production.compuserve.com>,<31228356.29F2@bhp.com.au>
Reply-To: carl@SOL1.GPS.CALTECH.EDU
NNTP-Posting-Host: sol1.gps.caltech.edu

In article <31228356.29F2@bhp.com.au>, Rob Spencer <spencer.rob.rw@bhp.com.au> writes:
=The only way we got this to work was to setup a printer queue to a 
=decserver port (although a serial port would probably do!) and connect a 
=loopback plug to the port. This isn't really a queue to nowhere but it 
=doesn't waste any paper. The other option is to have a scheduled job 
=which regularly deletes the jobs from NULL_QUEUE.
=
=Perhaps someone with knowledge of writing symbionts can bash something 
=together? Please????

As I've pointed out before, it's really not difficult.  Here's one way to do
it.  Make sure that the definition of PSM$K_OUTPUT is appropriate for your
version of VMS (7 works for VMS v5.4-2 and OpenVMS/Alpha v6.2, and I rather
doubt that it's likely to change, but it doesn't hurt to check).

#include descrip
#define	PSM$K_OUTPUT	7

modify()
{	unsigned long code2 = PSM$K_OUTPUT, ps_output(), PSM$REPLACE(),
		PSM$PRINT();
	PSM$REPLACE(&code2, ps_output);
	PSM$PRINT(0, 0, 0);
}

unsigned long ps_output(long *request_id, long *work_area, long *func, 
	struct dsc$descriptor *funcdesc, long *funcarg)
{	return 1;
}
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL

Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
understanding of astronomy is purely at the amateur level (or below).  So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it.  If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.


