Skip to content

Instantly share code, notes, and snippets.

@giovino
Created October 14, 2015 11:57
Show Gist options
  • Save giovino/63e123b0dd1e1afe3b2f to your computer and use it in GitHub Desktop.
Save giovino/63e123b0dd1e1afe3b2f to your computer and use it in GitHub Desktop.
pycif lastday work around
#!/bin/bash
ONE_DAY_AGO=`date --date="24 hours ago" +"%Y-%m-%dT%H:%M:%SZ"`
NOW=`date +"%Y-%m-%dT%H:%M:%SZ"`
/usr/local/bin/cif --asn=87 --reporttime=$ONE_DAY_AGO --reporttime-end=$NOW
@epazoglu
Copy link

i have done some thing similar : )
thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment