[Samba] Print Job Notification
Joel Hammer
Joel at HammersHome.com
Wed Jun 26 10:37:12 GMT 2002
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