I am having problems with this script...It doesn't seem to work. Note: It sends email just fine.
#!/bin/bash
#Reset the queue every morning at 5:00AM PST
#v 1.1 changed email
#Email alert that queue has been reset
#
asterisk -rx 'queue reset stats'
SUBJECT="XXXXX"
EMAIL="XXXX@domain.com"
EMAILMESSAGE="Queue has been reset"
echo "$EMAILMESSAGE" | /bin/mail -s "$SUBJECT" "$EMAIL"
asterisk -rx 'queue reset stats'work when typed in the console? (assuming that's the line not working from your script). – m4573r Oct 4 '12 at 14:08-rwxr-xr-x 1 root rootAny inputs? – JoyIan Yee-Hernandez Oct 9 '12 at 14:47