From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 75B4B1381F3 for ; Thu, 11 Jul 2013 11:16:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4AB35E0968; Thu, 11 Jul 2013 11:16:50 +0000 (UTC) Received: from homiemail-a81.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by pigeon.gentoo.org (Postfix) with ESMTP id 3F3A3E094E for ; Thu, 11 Jul 2013 11:16:49 +0000 (UTC) Received: from homiemail-a81.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a81.g.dreamhost.com (Postfix) with ESMTP id 406D5A806C for ; Thu, 11 Jul 2013 04:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=libertytrek.org; h= message-id:date:from:mime-version:to:subject:content-type: content-transfer-encoding; s=libertytrek.org; bh=E7RHK5BSCWQsEnR fxi14z675E+M=; b=LpedGkeHmIDlZTraR6V6hzSWCNWVvwVkeOrsVglv5VJPzqb fE13F2lAe10X3aiufS7beCUmCvV1dLqfPPGqq7ovDhHd3PSCie9tnDXtPJrZRQTy WeTui13qm3dsOzjLMERZuhsPEsxO0/iUt8gdr1YtXprG7y1D0UxNqHdlqrYM= Received: from [127.0.0.1] (unknown [159.63.145.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: tanstaafl@libertytrek.org) by homiemail-a81.g.dreamhost.com (Postfix) with ESMTPSA id 2309BA8061 for ; Thu, 11 Jul 2013 04:16:47 -0700 (PDT) Message-ID: <51DE9408.8040303@libertytrek.org> Date: Thu, 11 Jul 2013 07:16:24 -0400 From: Tanstaafl User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Using 'time' command in crontab? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 85127955-f8e5-4aea-b0e2-a1b3303dcd1c X-Archives-Hash: 462aa283a1afbbf5d8d952ec7ca8c2d5 Hi all, Ok, I want to use the time command in my crontab... Working crontab entry: > 58 6,11,16,21 * * * rsnapshot -c /etc/rsnapshot/myhost.conf sync; rsnapshot -c /etc/rsnapshot/myhost.conf hourly Non-working (with time command added): > 58 6,11,16,21 * * * time { rsnapshot -c /etc/rsnapshot/myhost.conf sync; rsnapshot -c /etc/rsnapshot/myhost.conf hourly } Adding the time { } to the command results in the following error being emailed: /bin/sh: -c: line 1: syntax error: unexpected end of file Obviously this is more proof of my lack of understanding bash, but googling hasn't revealed a solution, so any help is appreciated... Thanks