[Dxspider-support] Remove old spots and data

Dirk Koopman djk at tobit.co.uk
Tue May 31 12:07:45 BST 2022


On 31/05/2022 11:56, Dirk Koopman via Dxspider-support wrote:
> spawn("find /spider/local_data/logs -type f -mtime +62 -exec rm -f {} 
> \;").

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().

This is a one of those perl quoting conundrums. This is probably better 
quoted like this:

spawn('find /spider/local_data/logs -type f -mtime +62 -exec rm -f {} \;').

or

spawn(q[find /spider/local_data/logs -type f -mtime +62 -exec rm -f {} \;]).

sorry about that.

Dirk G1TLH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20220531/df7a8921/attachment.htm>


More information about the Dxspider-support mailing list