<div dir='auto'>Always learn something.<div dir="auto"><br></div><div dir="auto">Thanks Dirk. </div><div dir="auto"><br></div><div dir="auto">Kin</div></div><div class="gmail_extra"><br><div class="gmail_quote">El 31 may. 2022 13:07, Dirk Koopman via Dxspider-support <dxspider-support@tobit.co.uk> escribió:<br type="attribution" /><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<div>On 31/05/2022 11:56, Dirk Koopman via
Dxspider-support wrote:<br />
</div>
<blockquote><font face="Calibri">spawn("find /spider/local_data/logs -type f
-mtime +62 -exec rm -f {} \;").</font></blockquote>
<br />
<font face="Calibri">is actually wrong, because the \; is required
by the underlying shell that spawn runs the find command in, and
should be \\; if using " as the quoting character for the spawn().
</font><br />
<br />
<font size="4">This is a one of those perl quoting conundrums. This
is probably better quoted like this:<br />
</font><br />
<font size="4"><font size="4"><font face="Calibri"><font face="monospace">spawn('find /spider/local_data/logs -type f
-mtime +62 -exec rm -f {} \;').</font><br />
<br />
</font></font>or<br />
<br />
</font><font size="4" face="monospace">spawn(q[find
/spider/local_data/logs -type f -mtime +62 -exec rm -f {} \;]).<br />
<br />
</font><font size="4"><font face="Calibri">sorry about that.<br />
<br />
Dirk G1TLH<br />
</font></font>
</div>
</blockquote></div><br></div>