From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OnDnh-0002q2-Nc for garchives@archives.gentoo.org; Sun, 22 Aug 2010 16:53:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F856E07F1; Sun, 22 Aug 2010 16:53:01 +0000 (UTC) Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com [209.85.215.181]) by pigeon.gentoo.org (Postfix) with ESMTP id E32F2E07F1 for ; Sun, 22 Aug 2010 16:53:00 +0000 (UTC) Received: by eyf6 with SMTP id 6so3313590eyf.40 for ; Sun, 22 Aug 2010 09:53:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=KQX5xokBE9gGKkI81U3xVfrb1/bJwFyqwcbWID5CCgw=; b=ehZstya98HIxXt+ZFZm3lIxhv/p/oVLhKjKkKTO/7/te1dcTdxRX4WcDe32jJ1jHl1 nXBsHaPZX0SO8/BYbPdEhLnsE6kesTnQjMxXR5Yll/ZBOQYT8be8XeirvzSsSsrwRPtN tAqUiBdxRiCmKjRjtDOXcczM+5/3inlz7hNBs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=cK/8ZBDsNEW9dC9MG4cJS6TnoGETW0362XBM6+CdNUo7RpUbYEKfNG2a1P6IVDpNJr 7r99+3xwEUH+obbFDtWqa46ilJVHTAdHpqN+d0f0JS54INwduyh7hkYmNU9hUNfZhW/u in4DlcvfMN1XDEN2qut6jcu1zV86x1Zvs6iTg= Received: by 10.213.52.5 with SMTP id f5mr3666348ebg.35.1282495980317; Sun, 22 Aug 2010 09:53:00 -0700 (PDT) Received: from nazgul.localnet (196-210-202-152.dynamic.isadsl.co.za [196.210.202.152]) by mx.google.com with ESMTPS id z55sm9237815eeh.15.2010.08.22.09.52.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 22 Aug 2010 09:52:59 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] chrony logrotate script EOF error Date: Sun, 22 Aug 2010 18:50:02 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.35-ck-r1; KDE/4.4.5; x86_64; ; ) References: <201008221111.23277.michaelkintzios@gmail.com> <201008221825.02919.alan.mckinnon@gmail.com> <201008221744.54658.michaelkintzios@gmail.com> In-Reply-To: <201008221744.54658.michaelkintzios@gmail.com> 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 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201008221850.02745.alan.mckinnon@gmail.com> X-Archives-Salt: 2cbaef96-6917-4b45-9e2b-df35e0accb5d X-Archives-Hash: ad93cb172e4d35474e2ab3b739f717df Apparently, though unproven, at 18:44 on Sunday 22 August 2010, Mick did opine thusly: > > No, it's saying it wants EOF on a line all by itself with no leading > > whitespace. That thing that looks like a backtick is an open quote. > > Hmm ... so what should the corrected logrotate script look like then? > > cat << > EOF > | /usr/bin/chronyc | sed '/^200 OK$/d' > password $PASSWORD > cyclelogs > EOF > endscript > } Change the other EOF instead. It's a "here document", search for that phrase in man bash to find out more. It tells bash what will cause input redirection from stdin to end. The first EOF is the string to look for, the second one is the trigger that ends input -- alan dot mckinnon at gmail dot com