[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

banner page in LPRng



Hello,
  I am having troubles with setting up the banner page in lprng. It only
works the short banner with the default bl line. But how can I specify
e.g. a banner page, which would be output of something like that:
  /usr/games/banner <username>
  echo Printed from <remote host>, Date <date & time>

I tried to set up /etc/printcap:
# This file was generated by /usr/sbin/magicfilterconfig.
#
lp|hplj4l|HP Laserjet 4L:\
        :lp=/dev/lp0:sd=/var/spool/lpd/hplj4l:\
        :bp=/usr/games/banner $-'n
        :pw#80:pl#72:px#1440:mx#0:\
        :if=/etc/magicfilter/ljet4l-filter:\
        :af=/var/log/lp-acct:lf=/var/log/lp-errs:

but it doesn't work (nothing is printed), unfortunately I didn't found any
error message in the lpr output.....

The option $-'n I took from the documentation
http://www.sunsite.ualberta.ca/Documentation/Misc/LPRng-3.5.2/LPRng-HOWTO.html


Thanks for anay hints.


           Tomas

 E-mail : davidek@ipnp.troja.mff.cuni.cz,
	  Tomas.Davidek@cern.ch



Reply to: