View Single Post

   
  #2 (permalink)  
Old 01-16-2008, 09:00 PM
Frank Slootweg
 
Posts: n/a
Default Re: script as printer backend

Loial <admin@loial.co.uk> wrote:
> On AIX, Solaris it is fairly easy to set up a "printer" which rather
> than printing something, just runs a script. On AIX this is done by
> specifying the script as the the printer "backend" when adding a
> printer in SMIT, and on Solaris by using the -i parameter in lpadmin.
>
> Can a similar thing be done in HPUX? If so, how easy is it?
>
> Incidentially I do not yet have access to a HPUX system or any HPUX
> experience, so please treat me as an idiot when replying!
>
> TIA


On HP-UX you can use the "dumb" model script for this. That script
will still print (to a 'dumb' printer, hence the name), but it's just a
script, so you can remove the actual printing stuff and put in your
stuff or/and call another script.

For details see the description of model (and interface) scripts in
the lpadmin(1M) manual page. That page also describes how lpadmin(1M)
invokes the interface script. See the www.docs.hp.com site for the HP-UX
manual pages.
Reply With Quote