Show
Ignore:
Timestamp:
06/07/04 21:10:16 (20 years ago)
Author:
jalet
Message:

Extended the PATH

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/mailandpopup.sh

    r1257 r1527  
    1414# $Id$ 
    1515# 
     16PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/opt/bin 
     17# 
    1618# user's name 
    1719UNAME=$1 
     
    2426# 
    2527# Convert message body to UTF8 for WinPopup 
    26 UTF8MESSAGE=`echo "$MESSAGE" | /usr/bin/iconv --to-code utf-8 --from-code iso-8859-15` 
     28UTF8MESSAGE=`echo "$MESSAGE" | iconv --to-code utf-8 --from-code iso-8859-15` 
    2729# 
    2830# Send original message to user 
    29 /usr/bin/mail -s "Print Quota problem" $RECIPIENT <<EOF1 
     31mail -s "Print Quota problem" $RECIPIENT <<EOF1 
    3032$MESSAGE 
    3133EOF1 
    3234#  
    3335# Send some information to root as well 
    34 /usr/bin/mail -s "Print Quota problem on printer $PNAME" root <<EOF2 
     36mail -s "Print Quota problem on printer $PNAME" root <<EOF2 
    3537Print Quota problem for user $UNAME 
    3638EOF2 
    3739# 
    3840# Launch WinPopup on user's host (may need a real Samba or NT domain)  
    39 echo "$UTF8MESSAGE" | /usr/bin/smbclient -M "$UNAME" 2>&1 >/dev/null 
     41echo "$UTF8MESSAGE" | smbclient -M "$UNAME" 2>&1 >/dev/null