home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / aix / 12988 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.5 KB

  1. Path: sparky!uunet!news.larc.nasa.gov!hops.larc.nasa.gov!bell
  2. From: bell@hops.larc.nasa.gov (John Bell)
  3. Newsgroups: comp.unix.aix
  4. Subject: lpr and qdaemon interaction question
  5. Date: 4 Jan 1993 20:49:58 GMT
  6. Organization: NASA Langley Research Center
  7. Lines: 25
  8. Distribution: world
  9. Message-ID: <1ia7tmINN3na@rave.larc.nasa.gov>
  10. NNTP-Posting-Host: hops.larc.nasa.gov
  11.  
  12. OK, I tried InfoDestructor(tm) and just ran out of luck. My problem is this:
  13.  
  14.   Remote user queues a print job to an AIX queue which is handled on the AIX
  15. end by lpd. lpd places the print job on the queue and everything is OK. BUT,
  16. the queue then processes the job (using enscript) and requeues is to another
  17. queue which actually prints the job to yet another remote printer. (Don't
  18. even ask why this kludgy approach is needed). Since the actual file that
  19. enscript uses is a temp file, the file name which appears on the headers is
  20. is the name of the temp file, instead of the name of the original remote file.
  21. Now, I know that the name of the file is contained in a status file in 
  22. /usr/spool/lpd/... and that I could get it by reading the file, but I'm lazy.
  23. When lpd calls enq to queue the job, enscript gets the following arguments:
  24.    -Hhostname filename
  25. where filename is the temp file name and hostname is the remote system.
  26. Is there a way to make lpd include the remote filename or any of the other
  27. information that the remote system's lpr passed to lpd?
  28.  
  29. Thanks in advance!
  30.  
  31. -----
  32. John Bell
  33. NASA Langley Research Center
  34. bell@hops.larc.nasa.gov
  35.   
  36.  
  37.