On Thu, 04 Nov 2004 18:58:06 +1100
Peter Hardy <[EMAIL PROTECTED]> wrote:

> Actually, I think you've got it the wrong way around. The one line
> version works for today.
> [EMAIL PROTECTED]:~$ ( wday -q || wday -q `/bin/date -d yesterday +%Y%m%d` ) && echo 
> Hello
> [EMAIL PROTECTED]:~$
>

at a tangent to the main question, did you actually check this in cron?

Because % is used to insert newlines in crontab and needs to be escaped
(with \).

example from 'man 5 crontab':

    0 22 * * 1-5   mail -s "It___s 10pm" joe%Joe,%%Where are your kids?%

--
Matt
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to