home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / vms / 12737 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.3 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!MSUKBS.BITNET!OZMINSKI
  2. From: OZMINSKI@MSUKBS.BITNET (Stephan Ozminski)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Redirect printer queue
  5. Message-ID: <01GMPXT70NHSA3CW83@MSUKBS.BITNET>
  6. Date: 23 Jul 92 17:50:00 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Organization: The Internet
  9. Lines: 25
  10.  
  11. >
  12. >Is there any easy and quick way to catch what is sent to a printer queue and
  13. >redirect it to another file? The only way I can think of is to modify the
  14. >symbiont. Any suggestions?
  15. >
  16. >Gong Su
  17.  
  18. The closest we can come to what might help you is to send the file
  19. to a generic queue that is stopped.  A stopped queue will accept print
  20. jobs and put them in a pending state.  We have a dcl procedure that
  21. runs in a detached process and checks the queue every 30 seconds and
  22. modifies the print jobs before moving them with set entry/requeue.
  23. With a privileged account you could do whatever you want to the print
  24. job while it is pending, including using f$getqui() to find the file
  25. name and process the file submitted.
  26.  
  27. -Stephan
  28.  
  29.  
  30. Stephan J. Ozminski                    Bitnet:    OZMINSKI@MSUKBS
  31. Michigan State University              Internet:  OZMINSKI%KBS.DECNET@CLVAX1.CL.
  32.    MSU.EDU
  33. W.K. Kellogg Biological Station
  34. 3700 E. Gull Lake Dr.
  35. Hickory Corners, MI 49060
  36.