Created
October 30, 2013 23:40
-
-
Save cedricve/7242207 to your computer and use it in GitHub Desktop.
cron
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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