
On Fri, 2005-02-25 at 15:08, Patrick Shanahan wrote:
* Kastus <NOSPAM@tprfct.net> [02-25-05 14:16]:
I am not sure about underscore. This is what I am using in crontab:
$(date +\%y\%m\%d)
"%" has a special meaning in crontab, it marks a new line. ^^^^^^^^^^^^^^^^^^^
To use % as it is, you have to escape it.
And this is the correct answer although calling the function as an external file also works. The underscore was a mistake/mistype, should have been a plus sign (+).
What is the *special* function of the per cent (%) sign in crontab, if I may ask?
-- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 * Only reply to the list please* "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge