[Xastir] Saving serial snapshots
Gerry Creager
gerry.creager at tamu.edu
Wed Apr 15 21:20:46 EDT 2009
Curt, WE7U wrote:
> On Thu, 16 Apr 2009, Carl Makin wrote:
>
>> #!/bin/sh
>>
>> RIGHTNOW=`date +%Y%M%d%H%M`
>>
>> if [ -f 'snapshot.jpg' ]; then
>> mv snapshot.jpg archive/snapshot-$RIGHTNOW.jpg
>> fi
>
> I was going to use the Unix Epoch timestamps, and check that the
> file was actually done being written, but yea, that's the idea.
Personally, I think you ought to use the MD5 of the image as a seed for
a RAND, and use that as the filename. A similar approach could be used
for the extension.
--
Gerry Creager -- gerry.creager at tamu.edu
Texas Mesonet -- AATLT, Texas A&M University
Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983
Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843
More information about the Xastir
mailing list