Changeset 1527 for pykota/trunk/bin

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

Extended the PATH

Location:
pykota/trunk/bin
Files:
3 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 
  • pykota/trunk/bin/papwaitprinter.sh

    r1341 r1527  
    1414# $Id$ 
    1515# 
    16  
     16PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/opt/bin 
    1717sleep 5; 
    18 until /usr/bin/papstatus -p "$1" | grep -i idle >/dev/null ; do  
     18until papstatus -p "$1" | grep -i idle >/dev/null ; do  
    1919   sleep 1 ;  
    2020done 
    21  
  • pykota/trunk/bin/waitprinter.sh

    r1519 r1527  
    2424# the printer would effectively never print again if the previous job 
    2525# was already fully printed. 
     26PATH=$PATH:/bin:/usr/bin:/usr/local/bin:/opt/bin 
    2627if [ x$PYKOTAACTION != "xDENY" ] && [ x$PYKOTAPHASE == "xAFTER" ] ; then 
    2728  until snmpget -v1 -c public -Ov $1 HOST-RESOURCES-MIB::hrPrinterStatus.1 | grep -i printing >/dev/null; do