From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] chrony logrotate script EOF error
Date: Sun, 22 Aug 2010 18:50:02 +0200 [thread overview]
Message-ID: <201008221850.02745.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <201008221744.54658.michaelkintzios@gmail.com>
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
next prev parent reply other threads:[~2010-08-22 16:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-22 10:11 [gentoo-user] chrony logrotate script EOF error Mick
2010-08-22 10:25 ` Alex Schuster
2010-08-22 14:50 ` Mick
2010-08-22 16:25 ` Alan McKinnon
2010-08-22 16:44 ` Mick
2010-08-22 16:50 ` Alan McKinnon [this message]
2010-08-22 18:01 ` Mick
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=201008221850.02745.alan.mckinnon@gmail.com \
--to=alan.mckinnon@gmail.com \
--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