Hi all,
This single-line command works fine on the command-line:
However, as a cron job, it generates an error message every time it is invoked:
Anyone have any ideas why?
This single-line command works fine on the command-line:
Code:
$ spamdb | grep WHITE > /home/colin/log/whitelist-$(date "+%Y%m%d").txt && cat /home/colin/log/whitelist-$(date "+%Y%m%d").txt| awk -F "|" '{print $2}' | xargs -I{} spamdb -a '{}'
However, as a cron job, it generates an error message every time it is invoked:
Code:
/usr/local/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/usr/local/bin/bash: -c: line 1: syntax error: unexpected end of file