<div dir="ltr"><div class="gmail_extra">On 4 June 2013 09:35, Phil Crooker <span dir="ltr"><<a href="mailto:Phil.Crooker@orix.com.au" target="_blank">Phil.Crooker@orix.com.au</a>></span> wrote:<br><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>I've found the quotes to be problematic. Try escaping each space, or truncating the string:</div>

</blockquote><div><br></div><div style>I've not used escaping of spaces in this way.  But I have used quotes that include the IGNORE= part like so:</div><div style><br></div><div style>LOG=/var/adm/messages "IGNORE=<span style="font-family:arial,sans-serif;font-size:13px">terminal-device not specifiedby login</span>"</div>

<div style><br></div><div style><span style="font-family:Tahoma;font-size:13px">> LOG=/var/adm/messages IGNORE=terminal-device.*login</span><br></div><div style><span style="font-family:Tahoma;font-size:13px"><br></span></div>

<div style><span style="font-family:Tahoma;font-size:13px">This won't work because you are using a regular expression match format ".*" but not specifying that it's a regular expression with a leading percent.  This might be what you mean:</span></div>

<div style><span style="font-family:Tahoma;font-size:13px"><br></span></div><div style><span style="font-family:Tahoma;font-size:13px">LOG=/var/adm/messages IGNORE=%terminal-device.*login</span><span style="font-family:Tahoma;font-size:13px"><br>

</span></div><div style><span style="font-family:Tahoma;font-size:13px"><br></span></div><div style><span style="font-family:Tahoma;font-size:13px">Or, you can replace spaces with the regex whitespace, like so:</span></div>

<div style><span style="font-family:Tahoma;font-size:13px"><br></span></div><div style><div>LOG=/var/adm/messages IGNORE=%<span style="font-family:arial,sans-serif;font-size:13px">terminal-device\snot\sspecifiedby\slogin</span></div>

<div><br></div><div style>IMHO, the neatest is to enclose the whole "IGNORE=matchstring" in quotes.</div><div style><br></div><div style>J</div><div style><br></div></div></div></div></div>