[Samba] Print Job Notification

Joel Hammer Joel at HammersHome.com
Wed Jun 26 15:27:03 GMT 2002


%J is supposed to contain the banner page for the print job, and this
is what is captured by the script. I do not know what you mean by Win2k
double spooling. Is the an intrinsic property of win2k or of some particular 
arrangement you have?

Joel

On Wed, Jun 26, 2002 at 03:08:06PM -0400, Van Sickler, Jim wrote:
> I think it was intended to pull the Windows
> file name for the print job out, to pass on to
> samba-instead of smbprn.yada.yada
> 
> All mine shows is:
> 
> Remote Downlevel Document hp4plus smbprn.001370.YH8848
> This is truncated Remote Downlevel Document
> 
> because of the way the printers are set up...
> win2k double-spools the job, so the filename
> info is lost to lprng/samba
> 
> I haven't found the cure for that yet-I may
> just delete all of the printers on my Win2k
> box, purge the registry, and try again.
> I've only done it about 50 times already...;-(
> 
> Jim
> 
> > -----Original Message-----
> > From: Joel Hammer [mailto:Joel at HammersHome.com]
> > Sent: Wednesday, June 26, 2002 10:36 AM
> > To: Van Sickler, Jim; samba at lists.samba.org
> > Subject: Re: [Samba] Print Job Notification
> > 
> > 
> > Is this about notification of printer job done?
> > 
> > The file junkJ was meant more for trouble shooting. Checking just now,
> > that file is gone from /tmp, don't know why. /tmp is purged from time
> > to time, perhaps by cron. I forget. If you want to keep it for logging
> > purposes, you might put it into /var/log and have logrotate 
> > compress it
> > for you.
> > 
> > Joel
> > 
> > 
> > On Wed, Jun 26, 2002 at 12:07:38PM -0400, Van Sickler, Jim wrote:
> > > Joel,
> > > 
> > >   I noticed when copying/pasting script sections,
> > > one of the characters fails to be transferred.
> > > It's the ` character.  For some reason, putty
> > > or joe drops the character when pasting.
> > > 
> > > It's hex 0x60, and on my OpenBSD system,
> > > I'm using joe as the editor.
> > > 
> > > To insert the character at the current
> > > cursor location:
> > > 
> > > Press the `/~ key
> > > Press x (for hex)
> > > Enter 60 and press Enter
> > > Done!
> > > 
> > > I had problems using your lpr command script
> > > when I pasted it-turns out the ` was missing
> > > in a couple of places, and I had to change the
> > > spaces at the start of line to tabs.  It all
> > > worked after that.  I do have one question:
> > > what deletes /tmp/junkJ?  Do you use a cron
> > > job to purge it, or delete it manually?
> > > 
> > > Jim
> > > 
> > > 
> > > > -----Original Message-----
> > > > From: Joel Hammer [mailto:Joel at HammersHome.com]
> > > > Sent: Wednesday, June 26, 2002 4:23 AM
> > > > To: samba at lists.samba.org
> > > > Subject: Re: [Samba] Print Job Notification
> > > > 
> > > > 
> > > > Opps. Just realized that in the mail notification command, I 
> > > > have only the
> > > > name of my regular user, jlh. So, change jlh to $User and put 
> > > > this command at
> > > > the top of the script, right next to Job:
> > > > User=`set | sed -n "s/^L//p"`        
> > > > You may have to enclose $Job in double quotes, in case there 
> > > > are spaces
> > > > in the job name.
> > > > 
> > > > Joel
> > > > 
> > > > 
> > > > > /usr/local/bin/pstotext && echo "Job $Job Done" | /bin/mail 
> > > > -s "PrintingDone" jlh  || echo "Job $Job Failed" | /bin/mail 
> > > > -s "Printing Failed" jlh
> > > > 
> > > > -- 
> > > > To unsubscribe from this list go to the following URL and read the
> > > > instructions:  http://lists.samba.org/mailman/listinfo/samba
> > > > 
> > 




More information about the samba mailing list