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.

--
Curt, WE7U.                             archer at eskimo dot com
http://www.eskimo.com/~archer
  Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!"
_______________________________________________
Xastir mailing list
[email protected]
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

Reply via email to