Subject: Re: [netatalk-admins] Retrieving Print File name from PAPD
From: Albert Max Lai (amlai@columbia.edu)
Date: Tue Oct 27 1998 - 14:57:35 EST
On Tue, 27 Oct 1998, Les Barstow wrote:
> I could not find the answer to this elsewhere, so....
>
> I am using netatalk-1.4b2 on Solaris 2.5.1, and have several questions.
>
> 1) Does AppleTalk send filenames, usernames, or systemnames with print
> requests? If so, is there a way to get netatalk to pass them on to
> lpr/lp?
Here at Columbia, we figured out a way to get the Document title (the one
that shows up on the top of a window on the Mac) and the hostnames. We use
bootp namer to syncronize the hostname to the Macintosh name. Then we grep
for "%%Title: " and "%%For: " in the postscript for the document name and
the hostname respectively using a perl script. The perl script takes the
postscript from stdin (which means that you can just pipe stuff into it in
the papd.conf configuration), writes a document of the correct title to
the disk, "lpr -C hostname -Pprintername document_title", and removes the
file from the spool. In order to prevent the possibility of having
conflicting titles, we create a directory with the pid number as the
directory name and put the file there, then we remove the file and the
directory. This probably isn't the most efficient way (makes for quite a
bit of disk activity and a little bit more CPU if you have a lot of
printing), but it is working for now.
> 4) Is there work still being done on netatalk? I haven't seen a release
Yes. Adrian Sun has been doing lots of great work for netatalk. There
probably hasn't been any umich announcements though (as Adrian is
unaffiliated with umich).
\\\|||///
| |
( @ @ )
********************************************oooO****(_)****Oooo*********
* Albert Lai SEAS Columbia University *
* Residential Computer Consultant *
* e-mail: amlai@columbia.edu http://www.columbia.edu/~aml61 *
* aml61@columbia.edu http://amlai3.ec.rhno.columbia.edu *
* AOL: LaiAlbert@aol.com *
* 1018D East Campus *
* 411 W 116th St *
* New York, NY 10027 .oooO *
* Ph: (212)853-4854 ( ) Oooo. *
*************************************************\ ( ( )*************
\_) ) /
(_/
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:33:35 EST