From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HbOre-0000OT-Dn for garchives@archives.gentoo.org; Tue, 10 Apr 2007 22:31:02 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l3AMT5gM008787; Tue, 10 Apr 2007 22:29:05 GMT Received: from qsmtp4.mc.surewest.net (qsmtp.mc.surewest.net [66.60.130.145]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l3AMK7xi028029 for ; Tue, 10 Apr 2007 22:20:07 GMT Received: (qmail 20919 invoked from network); 10 Apr 2007 15:20:06 -0700 Received: by simscan 1.1.0 ppid: 20901, pid: 20902, t: 2.5237s scanners: regex: 1.1.0 attach: 1.1.0 clamav: 0.84/m:42/d:2665 spam: 3.0.3 Received: from unknown (HELO blacklamb.mykitchentable.net) (66.205.146.210) by qsmtp4 with SMTP; 10 Apr 2007 15:20:03 -0700 Received: from [192.168.25.6] (unknown [192.168.25.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTP id E3163164AA9 for ; Tue, 10 Apr 2007 15:20:02 -0700 (PDT) Message-ID: <461C0D9E.6080102@mykitchentable.net> Date: Tue, 10 Apr 2007 15:20:14 -0700 From: Drew Tomlinson User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Help With Cron Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on qsmtp4.surewest.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_00, RCVD_IN_SORBS_DUL autolearn=no version=3.0.3 X-Archives-Salt: 450ce65d-7e01-458c-9997-24cd460f39dd X-Archives-Hash: 21473075dc785c76dc502dcb2ad39965 My cron program is sys-process/vixie-cron-4.1-r9 and all cron jobs but one are running as I expect. Specifically, I want the following command to execute from cron: /usr/share/mythtv/mythrename.pl --format "%T %- %Y-%m-%d_%g-%i %A %- %S" --link /tv/pretty However it fails to run and I get this error message emailed to me from cron: From: mythtv@tv.mykitchentable.net Date: Tue, 10 Apr 2007 15:07:01 -0700 To: drew@mykitchentable.net Subject: Cron /usr/share/mythtv/mythrename.pl --format " X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: Message-Id: <20070410220701.655A716495E@blacklamb.mykitchentable.net> /bin/sh: -c: line 0: unexpected EOF while looking for matching `"' /bin/sh: -c: line 1: syntax error: unexpected end of file So I suspected the quotes in my command line might be the problem and I removed the '--format " ..."' part. Thus my command looked like this: /usr/share/mythtv/mythrename.pl --link /tv/pretty But still I received email with the same error. I don't understand what cron doesn't like. The command runs just fine as the user from the command line. Can someone please point me in the right direction? Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com -- gentoo-user@gentoo.org mailing list