#! /bin/sh # # PyKota - Print Quotas for CUPS and LPRng # # (c) 2003, 2004, 2005, 2006, 2007 Jerome Alet # You're welcome to redistribute this software under the # terms of the GNU General Public Licence version 2.0 # or, at your option, any higher version. # # You can read the complete GNU GPL in the file COPYING # which should come along with this software, or visit # the Free Software Foundation's WEB site http://www.fsf.org # # $Id$ # PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/opt/bin # # user's name UNAME=$1 # printer's name PNAME=$2 # message's recipient RECIPIENT=$3 # message's body MESSAGE=$4 # # Convert message body to UTF8 for WinPopup UTF8MESSAGE=`echo "$MESSAGE" | iconv --to-code utf-8 --from-code iso-8859-15` # # Send original message to user mail -s "Print Quota problem" $RECIPIENT <&1 ; done