Displaying 2 results from an estimated 2 matches for "bin_date".
Did you mean:
bin_data
2012 Feb 28
1
quota warning script not working after upgrade to 2.1.1
...failing here?
#!/bin/sh
#
# Should be run by the Local Delivery Agent
#
#set -x
SCRIPT_NAME="quota-warning2"
MAIL_TO=$2
MAIL_FROM="postmaster at charite.de"
MAIL_QUOTA_PERCENT=$1
MAIL_SUBJECT="Ihre Mailbox ist zu "$1"% voll!"
BIN_CAT="/bin/cat"
BIN_DATE="/bin/date"
BIN_HOSTNAME="/bin/hostname"
BIN_LOGGER="/usr/bin/logger"
BIN_MV="/bin/mv"
BIN_STAT="/usr/bin/stat"
#set -x
# set misc values
HOSTNAME="`${BIN_HOSTNAME}`"
# set mail value
MAIL_DATE="`${BIN_DATE} '+%a, %d %b %Y %T...
2009 Nov 26
2
quote warning not being triggered (yet again)
...g"
MAIL_TO="${USER}"
MAIL_FROM="postmaster at charite.de"
MAIL_QUOTA_PERCENT=$1
MAIL_SUBJECT="Ihre Mailbox ist zu "$1"% voll!"
DIR_MAILDIR_NEW="${HOME}/Maildir/new"
DIR_MAILDIR_TMP="${HOME}/Maildir/tmp"
BIN_CAT="/bin/cat"
BIN_DATE="/bin/date"
BIN_HOSTNAME="/bin/hostname"
BIN_LOGGER="/usr/bin/logger"
BIN_MV="/bin/mv"
BIN_STAT="/usr/bin/stat"
#set -x
# check for user
[ "x${MAIL_TO}" = "x" ] && \
${BIN_LOGGER} -p mail.error -t "${SCRIPT_NAME}...