Search found 2 matches
- 2011-06-21T07:26:35-07:00
- Forum: Developers
- Topic: How to resize via a cron job?
- Replies: 3
- Views: 9974
Re: How to resize via a cron job?
I was doing some more cron work and was reminded that I never posted the detail I had in mind. Here's how I got the lowdown on the cron shell environment... I setup a temporary cron job to invoke a shell script to create a little web page: #!/bin/bash DIR="/home/radilly/html/test" OUT_FILE="${DIR ...
- 2011-04-29T14:34:01-07:00
- Forum: Developers
- Topic: How to resize via a cron job?
- Replies: 3
- Views: 9974
Re: How to resize via a cron job?
$TIMER is a reference file. The touch command resets the modification time to the current time in the last line of the script. The "find .... -anewer $TIMER ...." clause fires when a .jpg is found with a newer timestamp than the reference file (which was reset after at the end of the last run). The ...