From: Drew Tomlinson <drew@mykitchentable.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Help With Cron -- SOLVED
Date: Tue, 10 Apr 2007 15:38:18 -0700 [thread overview]
Message-ID: <461C11DA.4060606@mykitchentable.net> (raw)
In-Reply-To: <461C0D9E.6080102@mykitchentable.net>
On 4/10/2007 3:20 PM Drew Tomlinson wrote:
> 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 <mythtv@tv> /usr/share/mythtv/mythrename.pl --format "
> X-Cron-Env: <MAILTO=drew@mykitchentable.net>
> X-Cron-Env: <SHELL=/bin/sh>
> X-Cron-Env: <HOME=/home/mythtv>
> X-Cron-Env: <PATH=/usr/bin:/bin>
> X-Cron-Env: <LOGNAME=mythtv>
> X-Cron-Env: <USER=mythtv>
> 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?
Never mind. Although I was editing the crontab with 'crontab -e', I
wasn't exiting out of my editor between edits. I was only hitting the
save button. Thus because I didn't actually exit the editor, the
updated crontab was not getting installed. Sorry for the noise.
Thanks,
Drew
P.S. Yes, the problem was with the quotes as I suspected earlier.
Escaping the quotes (\") solved the problem.
--
Be a Great Magician!
Visit The Alchemist's Warehouse
http://www.alchemistswarehouse.com
--
gentoo-user@gentoo.org mailing list
prev parent reply other threads:[~2007-04-10 23:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-10 22:20 [gentoo-user] Help With Cron Drew Tomlinson
2007-04-10 22:38 ` Drew Tomlinson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=461C11DA.4060606@mykitchentable.net \
--to=drew@mykitchentable.net \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox