Skip to content

Instantly share code, notes, and snippets.

@cedricve
Created October 30, 2013 23:40
Show Gist options
  • Save cedricve/7242207 to your computer and use it in GitHub Desktop.
Save cedricve/7242207 to your computer and use it in GitHub Desktop.
cron
#!/bin/bash
#remove all files older than 1 days
date +%H:%M:%S >> /home/pi/opencv/log_upload
echo "removed all files, older than 1days" >> /home/pi/opencv/log_upload
find /home/pi/opencv/pics/* -exec sudo rm -rf {} \; >> /home/pi/opencv/log_upload
printf "\n\n" >> /home/pi/opencv/log_upload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment