[Samba] Print Job Notification
Joel Hammer
Joel at HammersHome.com
Wed Jun 26 04:23:04 GMT 2002
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
More information about the samba
mailing list