[Samba] Print Job Notification

Bas van Besouw bvbesouw at adelphia.net
Sat Jun 22 17:31:02 GMT 2002

Chad Edwards wrote:

> lpr -r -P%p %s; csh -c 'echo \"%J has started printing on %S\" |
> /usr/bin/smbclient -U %L -M %m -I %I' &
> It kind of does what I want, but notice that the message says that "Job has
> STARTED printing on Printer". This is because with this command the message
> is sent after the lpr command is executed and not when the job is actually
> done. I would really prefer the message be sent when the job is done, not
> when it is starting.

Just an idea,
how about starting a script when you start printing that keeps checking
the print que until it's done, then the smbclient thingy?


More information about the samba mailing list