procmail
[Top] [All Lists]

Re: Newbee what's wrong DATE backup

2002-04-22 13:22:31
Hi I'm very new to procmail and many i've tryed but nothing ($MAAND) seems
to work

What's wrong with this :
I like to have a backup weekly

VERBOSE=ON
MAAND="'/bin/date +%Yweek%U'"

There is an example in 'man procmailex' that does almost the same thing
as you want:

  MONTHFOLDER=`date +%y-%m`

Note that you are using both single and double quotes, but the example
uses backticks.  Backticks are the thing to use when you want to execute
an external program.  So you want something like:

  MAAND=`/bin/date +%Yweek%U`

Lots of information on this in the man pages and FAQs.

Hope that helps,
Martin
-- 
Martin McCarthy                 /</    http://procmail.non-prophet.org
    `Procmail Companion'        \>\
     Addison Wesley             /</                  PGP key available
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>