From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,da236cf0cbd1bca6 X-Google-Attributes: gid1164f8,public From: Richard Subject: Re: Capturing a print queue Date: 1998/12/29 Message-ID: #1/1 X-Deja-AN: 426725951 X-NNTP-Posting-Host: nugget.demon.co.uk:158.152.215.220 References: <36829F1A.608D@gecm.com> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 914926136 nnrp-04:29652 NO-IDENT nugget.demon.co.uk:158.152.215.220 Organization: The Nugget Factory MIME-Version: 1.0 Newsgroups: comp.sys.dec In article <36829F1A.608D@gecm.com>, Alan Adams writes >Dirty solution: > >Make sure the queue is never started. >Using F$GETQUI from DCL you can find out the file name of the temporary >file, >then copy the file, delete the entry from the queue, and do your own >thing with the file. > >Same works from compiled code, use SYS$GETQUI. > >GETQUI is probably the most complex system service interface in VMS. The >HELP examples are useful in DCL, and it's wirth playing with the DCL >version >before trying the SYS version, which is even worse. > >However, step by step, persistence, and patience produce results. > >All this assumes a text printer. Postscript or PCL would be a pain. > >(Valium might be useful too.) Thanks for all this info. I forgot to say that this is for a DEC Alpha running OSF not VMS. Now I'm beginning to think I asked in the wrong newsgroup! The printers are all text printers (thankfully) so it will be a step by step patient process. You've probably seen my sig so the Valium is quite appropriate (although the generic is cheaper!) Cheers -- Richard Eyles | General techie anorak Principal Pharmacist Computer Services | DOS Win95 AIX HP-Unix (just) Queen Alexandra Hospital, Portsmouth | TCPIP IPX Novell