Gentoo Archives: gentoo-user

From: Drew Tomlinson <drew@××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Help With Cron
Date: Tue, 10 Apr 2007 22:31:02
Message-Id: 461C0D9E.6080102@mykitchentable.net
1 My cron program is sys-process/vixie-cron-4.1-r9 and all cron jobs but
2 one are running as I expect. Specifically, I want the following command
3 to execute from cron:
4
5 /usr/share/mythtv/mythrename.pl --format "%T %- %Y-%m-%d_%g-%i %A %- %S"
6 --link /tv/pretty
7
8 However it fails to run and I get this error message emailed to me from
9 cron:
10
11 From: mythtv@×××××××××××××××××.net
12 Date: Tue, 10 Apr 2007 15:07:01 -0700
13 To: drew@××××××××××××××.net
14 Subject: Cron <mythtv@tv> /usr/share/mythtv/mythrename.pl --format "
15 X-Cron-Env: <MAILTO=drew@××××××××××××××.net>
16 X-Cron-Env: <SHELL=/bin/sh>
17 X-Cron-Env: <HOME=/home/mythtv>
18 X-Cron-Env: <PATH=/usr/bin:/bin>
19 X-Cron-Env: <LOGNAME=mythtv>
20 X-Cron-Env: <USER=mythtv>
21 Message-Id: <20070410220701.655A716495E@××××××××××××××××××××××××.net>
22
23 /bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
24 /bin/sh: -c: line 1: syntax error: unexpected end of file
25
26 So I suspected the quotes in my command line might be the problem and I
27 removed the '--format " ..."' part. Thus my command looked like this:
28
29 /usr/share/mythtv/mythrename.pl --link /tv/pretty
30
31 But still I received email with the same error.
32
33 I don't understand what cron doesn't like. The command runs just fine
34 as the user from the command line. Can someone please point me in the
35 right direction?
36
37 Thanks,
38
39 Drew
40
41 --
42 Be a Great Magician!
43 Visit The Alchemist's Warehouse
44
45 http://www.alchemistswarehouse.com
46
47 --
48 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Help With Cron -- SOLVED Drew Tomlinson <drew@××××××××××××××.net>