crontab question

From: Sundaram Ramasamy (sun@percipia.com)
Date: Tue Dec 09 2003 - 10:18:09 EST


 Hi,

This question is not on Solaris but its Unix Related.

We are trying to add the contab entry on Redhat Linux 8.0. The entry works
find in command line but in cron we are getting following error message.

cron entry:
59 17 * * * "/home/ptce/mer.sh . $(date +%d) > /tmp/mer.$(date +%d) 2>>
/ptce/log/cron.log"

Error message by E-mail:

Subject: Cron <xx@xxe> /home/ptce/mer.sh . $(date +
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/ptce>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=xxx>

/bin/sh: -c: line 1: unexpected EOF while looking for matching `)'
/bin/sh: -c: line 2: syntax error: unexpected end of file

we are executing command line like this.
sh-2.05b$ /home/ptce/mer.sh . $(date +%d) > /tmp/mer.$(date +%d) 2>>
/ptce/log/cron.log
sh-2.05b$

Any idea why we are getting this error message.

Thanks
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:39 EDT