X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=bin%2Fbrisk_explain_update.sh;fp=bin%2Fbrisk_explain_update.sh;h=295c3deb672721a34d4b0c5d672a2876e014834a;hb=536e323a34cc3b939e3c6611fe2f6eaac54b51e5;hp=0000000000000000000000000000000000000000;hpb=7332bf2e21e419c2f5af5f7e955367b59c9da135;p=brisk.git diff --git a/bin/brisk_explain_update.sh b/bin/brisk_explain_update.sh new file mode 100755 index 0000000..295c3de --- /dev/null +++ b/bin/brisk_explain_update.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -x +export PATH=/home/nastasi/bin:/usr/local/bin:/usr/bin:/bin:/usr/games +B_HOSTNAME="http://localhost/brisk" +# now="$(date -d '2014-01-21 23:56:00' +%s)" +now="$(date +%s)" + +to="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "($now / 86400) * 86400 + 7200 " | bc))" +from="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "($now / 86400) * 86400 + 7200 - (86400)" | bc))" +# to="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "$now + 7200 " | bc))" +# from="$(date +"%Y-%m-%d+%H:%M:%S" -d @$(echo "$now - 9200 " | bc))" + +curl -d 'pazz=yourpasswd' "$B_HOSTNAME/briskin5/stat-day.php?from=$from&to=$to"