1 |
On 4/10/2007 3:20 PM Drew Tomlinson wrote: |
2 |
> My cron program is sys-process/vixie-cron-4.1-r9 and all cron jobs but |
3 |
> one are running as I expect. Specifically, I want the following |
4 |
> command to execute from cron: |
5 |
> |
6 |
> /usr/share/mythtv/mythrename.pl --format "%T %- %Y-%m-%d_%g-%i %A %- |
7 |
> %S" --link /tv/pretty |
8 |
> |
9 |
> However it fails to run and I get this error message emailed to me |
10 |
> from cron: |
11 |
> |
12 |
> From: mythtv@×××××××××××××××××.net |
13 |
> Date: Tue, 10 Apr 2007 15:07:01 -0700 |
14 |
> To: drew@××××××××××××××.net |
15 |
> Subject: Cron <mythtv@tv> /usr/share/mythtv/mythrename.pl --format " |
16 |
> X-Cron-Env: <MAILTO=drew@××××××××××××××.net> |
17 |
> X-Cron-Env: <SHELL=/bin/sh> |
18 |
> X-Cron-Env: <HOME=/home/mythtv> |
19 |
> X-Cron-Env: <PATH=/usr/bin:/bin> |
20 |
> X-Cron-Env: <LOGNAME=mythtv> |
21 |
> X-Cron-Env: <USER=mythtv> |
22 |
> Message-Id: <20070410220701.655A716495E@××××××××××××××××××××××××.net> |
23 |
> |
24 |
> /bin/sh: -c: line 0: unexpected EOF while looking for matching `"' |
25 |
> /bin/sh: -c: line 1: syntax error: unexpected end of file |
26 |
> |
27 |
> So I suspected the quotes in my command line might be the problem and |
28 |
> I removed the '--format " ..."' part. Thus my command looked like this: |
29 |
> |
30 |
> /usr/share/mythtv/mythrename.pl --link /tv/pretty |
31 |
> |
32 |
> But still I received email with the same error. |
33 |
> |
34 |
> I don't understand what cron doesn't like. The command runs just fine |
35 |
> as the user from the command line. Can someone please point me in the |
36 |
> right direction? |
37 |
|
38 |
Never mind. Although I was editing the crontab with 'crontab -e', I |
39 |
wasn't exiting out of my editor between edits. I was only hitting the |
40 |
save button. Thus because I didn't actually exit the editor, the |
41 |
updated crontab was not getting installed. Sorry for the noise. |
42 |
|
43 |
Thanks, |
44 |
|
45 |
Drew |
46 |
|
47 |
P.S. Yes, the problem was with the quotes as I suspected earlier. |
48 |
Escaping the quotes (\") solved the problem. |
49 |
|
50 |
-- |
51 |
Be a Great Magician! |
52 |
Visit The Alchemist's Warehouse |
53 |
|
54 |
http://www.alchemistswarehouse.com |
55 |
|
56 |
-- |
57 |
gentoo-user@g.o mailing list |