[Samba] Print Job Notification

Van Sickler, Jim vansickj-eodc at Kaman.com
Wed Jun 26 09:09:03 GMT 2002


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