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

Re: Cron problems

  • Subject: Re: Cron problems
  • From: Roy Schestowitz <newsgroups@schestowitz.com>
  • Date: Wed, 02 Mar 2005 04:59:53 +0000
  • Newsgroups: uk.comp.os.linux
  • References: <cvu763$2vlt$1@godfrey.mcc.ac.uk>
  • User-agent: KNode/0.7.2
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:
> 
> ---
> SHELL=/bin/sh
> PATH=/usr/local/bin:/bin:/usr/bin
> 
> 28 4 * * * tar czvf /home/roy/Main/Transfer_Archives/rss-`date
> +%Y-%m-%d`.tar.gz /home/roy/Main/Transfer
> ---
> 
> When I check the status of the task, I observe the following error:
> 
> ---
> /bin/sh: -c: line 1: unexpected EOF while looking for matching ``'
> /bin/sh: -c: line 2: syntax error: unexpected end of file
> ---
> 
> The command, however, works /fine/ when run normally in the shell.
> Removing `date +%Y-%m-%d` resolves the error, but does not help me do what
> I want -- it overwrites an older file.
> 
> Any help appreciated,
> 
> Roy

Moe, Peter, Nix,

That was exactly it. Thank you all very much.

Roy

-- 
Roy Schestowitz
http://schestowitz.com

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