Skip to content

Instantly share code, notes, and snippets.

@bvogel
Created May 22, 2014 18:15
Show Gist options
  • Select an option

  • Save bvogel/073b59b19354861dca1d to your computer and use it in GitHub Desktop.

Select an option

Save bvogel/073b59b19354861dca1d to your computer and use it in GitHub Desktop.
/usr/local/cron/delete_security_cam_history.sh
#!/bin/sh
seven_days_ago=`date -d '7 days ago' +'%Y%m%d'`
rm -f /share/SecurityCam/webcam${seven_days_ago}*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment