Changeset 2588 for pykota/trunk/bin
- Timestamp:
- 11/24/05 15:14:53 (18 years ago)
- Location:
- pykota/trunk/bin
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r2584 r2588 804 804 if mailto == "EXTERNAL" : 805 805 # TODO : clean this again 806 self.regainPriv() 806 807 self.externalMailTo(arguments, self.Action, self.User, self.Printer, self.Reason) 808 self.dropPriv() 807 809 else : 808 810 # TODO : clean this again -
pykota/trunk/bin/mailandpopup.sh
r2146 r2588 42 42 # we must also supply the IP address. This will use smbstatus to get all IPs 43 43 # where the user is logged in and send the message there: 44 IPS=`smbstatus -b -u $UNAME | grep '(' | cut -d'(' -f 2 | cut -d')' -f1`45 for i in $IPS ; do46 echo $UTF8MESSAGE | smbclient -M "$UNAME" -I $i 2>&1 >/dev/null;44 IPS=`smbstatus -b -u "$UNAME" | grep "$UNAME" | cut -d '(' -f 2,2 | cut -d ')' -f 1,1` 45 for i in $IPS ; do 46 echo "$UTF8MESSAGE" | smbclient -M "$UNAME" -I $i 2>&1 ; 47 47 done