era eriksson <era(_at_)iki(_dot_)fi> wrote:
<snip>
era> On Mon, 11 Aug 1997 08:06:47 +0900,
era> Mitsuru Furukawa <furu(_at_)009(_dot_)com> wrote:
era> > procmail: Error while writing to " echo "dummy" > pagedcount.$YYMMDD"
era> > are found in procmail log corresponding to following recipes:
era>
era> Missing :i flag.
era>
era> > :0cw:pagedcount.lock
era> > * $ !? test -f pagedcount.$YYMMDD
era> > | echo "dummy" > pagedcount.$YYMMDD
era> >
era> > :0:pagedcount.lock
era> > | echo "$FROM" >> pagedcount.$YYMMDD
era>
era> Apparently, the first recipe is making sure the pagedcount file
era> exists. If that's the case, you don't really need the dummy line --
era> just touch the file instead. (That will create it if it doesn't exist,
era> but you could even do it unconditionally, perhaps as part of the
era> second recipe. Or at the time you extract FROM, you could tee -a it to
era> the pagedcount file.)
OK. I'll change to touch, though I don't remember why I dummied.
I am limiting number of pager call per day due to high rate per call here:-<
So there are other conditions between 1st and 2nd recipe.
BTW, could you tell me the most efficient way to get just the total
number of entries(lines) in pagedcount file?
_/_/_/ Mitsuru FURUKAWA _/_/_/
_/_/_/ Tokyo, Japan _/_/_/
_/_/_/ mailto:furu(_at_)009(_dot_)com _/_/_/
_/_/_/ http://www.009.com/furu/ _/_/_/