Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Cron problems

  • Subject: Re: Cron problems
  • From: ibuprofin@painkiller.example.tld (Moe Trin)
  • Date: Mon, 28 Feb 2005 16:17:15 -0600
  • Newsgroups: uk.comp.os.linux
  • References: <cvu763$2vlt$1@godfrey.mcc.ac.uk>
  • Reply-to: no.mail.accepted.sorry
  • User-agent: slrn/0.9.5.4 (UNIX)
  • Xref: news.mcc.ac.uk uk.comp.os.linux:197343
In article <cvu763$2vlt$1@godfrey.mcc.ac.uk>, Roy Schestowitz wrote:

>I have been struggling to set up a nightly job that backs up a portion of my
>files. The following is a snippet from my crontab:

>28 4 * * * tar czvf /home/roy/Main/Transfer_Archives/rss-`date
>+%Y-%m-%d`.tar.gz /home/roy/Main/Transfer

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

NORMALLY, when I see this error, it's because there is a linefeed at
the end of the word 'date' and you have two lines.  Your command really
wants everything on a single line.  Could you be using a "user friendly"
editor like 'pico' that automatically line wraps? If it is 'pico', that
nasty feature can be disabled at the command prompt by calling pico with
the '-w' option.

        Old guy


[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index