Changeset 2410 for trunk/server/fedora/config/etc/scripts
- Timestamp:
- May 18, 2013, 5:02:49 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/fedora/config/etc/scripts/prune-mailq
r2409 r2410 6 6 usage="Usage: 7 7 $0 list 8 $0 show-rand" 8 $0 show-rand 9 $0 email lockers... 10 $0 purge lockers..." 11 12 clean_locker() { 13 echo "${1%%@scripts.mit.edu}" 14 } 9 15 10 16 show_rand() { … … 24 30 fi 25 31 for locker in "$@"; do 32 locker=$(clean_locker "$locker") 26 33 echo "fs la /mit/$locker/" 27 34 fs la "/mit/$locker" … … 63 70 fi 64 71 for locker in "$@"; do 72 locker=$(clean_locker "$locker") 65 73 echo "$locker..." 66 74 mailq | tail -n +2 | grep -v '^ *(' | awk "BEGIN { RS = \"\" } (\$8 == \"$locker@scripts.mit.edu\" && \$9 == \"\") { print \$1 }" | tr -d '*!' | postsuper -d -
Note: See TracChangeset
for help on using the changeset viewer.