[Samba] Pdf printer by mail with samba 3.0.9-1
Adam Tauno Williams
adam at morrison-ind.com
Wed Dec 8 13:33:39 GMT 2004
> >The problem of the connectivity error seems to have been persistant for the
> >duration of the windows login - so whatever I had screwed up I think I must
> >have fixed, but I still have concerns... (and oodles of ideas - I could use
> >this same process to create a fax gateway too...)
> I also wanted to do a fax gateway, but got sidetracked by another
> project (Replacing exchange yay!) Id be really interested in how you get
> on with that. Check out http://www.hylafax.org/ before you go on, make
> sure you arent re-inventing the wheel! I did not have much time to
> investigate, but the thing that worried me was how do you get the
> recipient fax number to the fax script?
We also use HylaFAX, but this has little to do with Samba. You require
a client for Windows in order to give users a decent experience, I
recommend HylaFSP (which is a commercial product, but reasonably
priced). There are several Win32 clients, most of which don't really
stand up to regular use.
> >[Mitch says:] >One of you had:
> >[Mitch says:] > lpq command = lpq -P'%p'
> >[Mitch says:] > lprm command = lprm -P'%p' %j
> >[Mitch says:] > lppause command = lpc hold '%p' %j
> >[Mitch says:] > lpresume command = lpc release '%p' %j
> >[Mitch says:] > queuepause command = lpc stop '%p'
> >[Mitch says:] > queueresume command = lpc start '%p'
> >[Mitch says:] >And one had only lpq and lprm with nothing after the = - I
> >[Mitch says:] >tried both ways?!?!
> >Further to my other email... The common important element is the line:
> >print command = /usr/local/bin/pdfout1.sh %s %u %m %I
> >When I look at the calls to "lpq -P'%p" etc, they all return errors as %p's
> >value (the printer share name) is not defined in printcap
Sure. You can replace those lpc calls with scripts or just try echo
statements. All samba does is grab standard out and the return code.
> >Perhaps somehow I should be using lpd to call the script?
> To create a proper queueing process and serialize the conversions?
> Otherwise couldn't I
> >experience the "print-of-death" from my users as 100 of them start to print
> >a PDF all at once?
You can nice the script.
More information about the samba