Bandwidthd - clear daily usage at midnight…



  • Hi all -

    I want to clear the daily usage .cdf log file at midnight.

    I have scoured, tried shell scripts, pgrep, kill -HUP, etc… to no avail.

    Any ideas?

    Thanks - Brad



  • Still stuck…
    I issue 4+ consecutive HUPs in hope the data will rotate out but NO.

    I have tried a shell script:

    #! /bin/sh
    #
    for pid in $(pgrep bandwidthd); do kill -HUP $pid; done
    

    I have also tried:

    pgrep bandwidthd| xargs kill -HUP
    

    I have tested both by changing "-HUP" to "-9" and whamo all parent and children are killed.

    What am I doing wrong?


Log in to reply