Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
DATE=`date +'%Y-%m-%d'`; \
FILE="/tmp/Agent_Performance_$DATE.csv"; \
wget http://127.0.0.1/vicidial/AST_agent_performance_detail.php --post-data "query_date=$DATE&end_date=$DATE&group[]=--ALL--&user_group[]=--ALL--&shift=ALL&file_download=1" --http-user=1234 --http-passwd=1234 -O $FILE ; \
echo "Hello" | mail -s "Agent Performance $DATE" -a $FILE foo@bar.com
/vicidial/call_report_export.php?DB=&run_export=1&ivr_export=&query_date=--A--7days--B--&end_date=--A--yesterday--B--&date_field=call_date&header_row=YES&rec_fields=NONE&custom_fields=NO&call_notes=NO&export_fields=STANDARD&campaign%5B%5D=1000&group%5B%5D=1001&group%5B%5D=1002&list_id%5B%5D=---ALL---&status%5B%5D=---ALL---&user_group%5B%5D=---ALL---&SUBMIT=SUBMIT
uselessinfoguru wrote:i'm having trouble getting thisautomatic script to email... i'm wondering is the date format correct?
- Code: Select all
/vicidial/call_report_export.php?DB=&run_export=1&ivr_export=&query_date=--A--7days--B--&end_date=--A--yesterday--B--&date_field=call_date&header_row=YES&rec_fields=NONE&custom_fields=NO&call_notes=NO&export_fields=STANDARD&campaign%5B%5D=1000&group%5B%5D=1001&group%5B%5D=1002&list_id%5B%5D=---ALL---&status%5B%5D=---ALL---&user_group%5B%5D=---ALL---&SUBMIT=SUBMIT
uselessinfoguru wrote:i was thinking the --A--7days--B-- and --A--yesterday--B-- might translate from the vici admin auto reports page like it does in the webforms
uselessinfoguru wrote:I'm not receiving the email when i test, and I'm not sure what log file to log at to see what went wrong.
tail -50 /var/log/mail.info
Users browsing this forum: No registered users and 96 guests