I’m new to command line on my ubuntu s3 micro instance and I need a cron job that grabs an image every minute and renames it to datestamp.jpg in a folder… example:
get this url: http://www.webcam1.com/live.jpg
rename to year_month_day_hour_min_second.jpg
save to cams/webcam1/
Thanks for your suggestions!
You can do this in one command:
If you are doing this from a bash script:
Save that bash script somewhere, and make sure to make it executable:
chmod +x /path/to/my/script.shAnd then add this line to your crontab (
crontab -e):And that should do it 🙂