On Sunday 22 August 2010 17:50:02 Alan McKinnon wrote: > 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
Thanks Alan, I think I got it now. :-) -- Regards, Mick
signature.asc
Description: This is a digitally signed message part.