resq/utils/warranty_motiv_prod.sh
2021-06-08 08:38:02 +00:00

9 lines
501 B
Bash
Executable file

#!/bin/bash
proc_date=`date +%m-%d-%y -d "1 day ago"`
download_file="/tmp/warranty_download_serial_$proc_date.csv"
load_status_file="/tmp/warranty_load_status_$proc_date.txt"
#echo $download_file
#echo $load_status_file
/usr/bin/php /var/www/resq/utils/get_warranty_serial/new_get_serials.php $proc_date $download_file 1
/usr/bin/php /var/www/resq/utils/load_warranty_serial/load_serials.php $download_file "mysql:host=172.18.203.191:3306;dbname=resq;charset=UTF8" resq Motolite456 $load_status_file