#! /bin/sh # # PyKota : Print Quotas for CUPS # # (c) 2003-2013 Jerome Alet # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # $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