Question
Fairlight
fairlite at fairlite.com
Fri Jan 14 12:44:43 PST 2005
>From inside the gravity well of a singularity, Jay Ashworth shouted:
> >
> > ....And I'd simply set this logic to run -every- Friday. No worrying about
> > dates, etc. It just flip-flops.
>
> Yeah, that would work. :-)
Of -course- it would! :)
> Or you could use the %U or %V switches to date, and expr to do modulo 2
> math to decide whether to run:
>
> [ `expr \`date +%U\` % 2` = 1 ] && dreport blah yada yada
>
> I *think* I have that right; I haven't tested it. (It's difficult to
> test things which only change every 7 days. :-)
Gahhhh! Math! *runs, shrieking*
See, the benefit of mine is that you -know- it will work 100% of the time
without even having to think. :) Probably the first thing this week I
-haven't- had to test.
mark->
--
Bring the web-enabling power of OneGate to -your- filePro applications today!
Try the live filePro-based, OneGate-enabled demo at the following URL:
http://www2.onnik.com/~fairlite/flfssindex.html
More information about the Filepro-list
mailing list