Im trying to put the date onto the output filename which works fine when I try it in terminal.
But when I add it to the crontab it keeps giving me these errors
This is what I put into the crontab (on my Mac system)
1 1 * * * /test.sh >> "/testDate $(date "+%d-%m-%y").txt"
This is what I get when the cron job runs:
Subject: Cron <test@testUser-2> /test.sh >> "/test $(date "+
Date: Sun, 31 May 2009 01:01:00
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
Any ideas why this is happening? (apart from the fact that it doesn't go any further then the first "%"