home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.larc.nasa.gov!hops.larc.nasa.gov!bell
- From: bell@hops.larc.nasa.gov (John Bell)
- Newsgroups: comp.unix.aix
- Subject: lpr and qdaemon interaction question
- Date: 4 Jan 1993 20:49:58 GMT
- Organization: NASA Langley Research Center
- Lines: 25
- Distribution: world
- Message-ID: <1ia7tmINN3na@rave.larc.nasa.gov>
- NNTP-Posting-Host: hops.larc.nasa.gov
-
- OK, I tried InfoDestructor(tm) and just ran out of luck. My problem is this:
-
- Remote user queues a print job to an AIX queue which is handled on the AIX
- end by lpd. lpd places the print job on the queue and everything is OK. BUT,
- the queue then processes the job (using enscript) and requeues is to another
- queue which actually prints the job to yet another remote printer. (Don't
- even ask why this kludgy approach is needed). Since the actual file that
- enscript uses is a temp file, the file name which appears on the headers is
- is the name of the temp file, instead of the name of the original remote file.
- Now, I know that the name of the file is contained in a status file in
- /usr/spool/lpd/... and that I could get it by reading the file, but I'm lazy.
- When lpd calls enq to queue the job, enscript gets the following arguments:
- -Hhostname filename
- where filename is the temp file name and hostname is the remote system.
- Is there a way to make lpd include the remote filename or any of the other
- information that the remote system's lpr passed to lpd?
-
- Thanks in advance!
-
- -----
- John Bell
- NASA Langley Research Center
- bell@hops.larc.nasa.gov
-
-
-