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 -- [email protected]
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
_______________________________________________
Xastir mailing list
[email protected]
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

Reply via email to