From: "Steven Levine" Received: from [192.168.100.201] (HELO mail.2rosenthals.com) by 2rosenthals.com (CommuniGate Pro SMTP 5.4.10) with ESMTP id 14422665 for ecs-isp@2rosenthals.com; Tue, 14 Oct 2025 00:21:12 -0400 Received: from secmgr-va.2rosenthals.com ([50.73.8.217]:58308 helo=mail2.2rosenthals.com) by mail.2rosenthals.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1v8WX8-000000002ap-1Ft6 for ecs-isp@2rosenthals.com; Tue, 14 Oct 2025 00:21:10 -0400 Received: from mta-201a.earthlink-vadesecure.net ([51.81.229.180]:33543) by mail2.2rosenthals.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1v8WWx-0000000012Z-1OJZ for ecs-isp@2rosenthals.com; Tue, 14 Oct 2025 00:20:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; bh=Fw9EVFFKtHm0dqGNM6xtrnI6TiDDSI2VXRisV8 nb9ko=; c=relaxed/relaxed; d=earthlink.net; h=from:reply-to:subject: date:to:cc:resent-date:resent-from:resent-to:resent-cc:in-reply-to: references:list-id:list-help:list-unsubscribe:list-unsubscribe-post: list-subscribe:list-post:list-owner:list-archive; q=dns/txt; s=dk12062016; t=1760415658; x=1761020458; b=f7QMCa9gCOdacse6dAm0/lBZR9p h+Yd8pZeau6vwdauHIkQlNlTfewm0uaYe/zf1nrgpSgVn5gGzsQGsObRfY1zla5FTT6m9yR 6js7Gb7e5iLnE3GJdTo5b0BpAkxS+GiruZ9/J3TZCe7ASPeZxUPNWPIEp3fth6J7j7WfL0C d+LnLM45A1R/8ZKn+RyjppUyvoVBgNmgE85CftI8i2KHciqNpVYRg4lvaU0OLsfuMUd8BOz x3grFp4PPR+tf8kvi/8TrlDEHBKfogUVa/zjGhI7u4h7Sqap/ffZs6rvo4JRdvcIt6N1guW WoxAbFxZEXguaXkTjsj/MHXfUzTuN9w== Received: from slamain ([107.202.224.188]) by vsel2nmtao01p.internal.vadesecure.com with ngmta id f0e36efa-186e40b6aafc29bf; Tue, 14 Oct 2025 04:20:58 +0000 Message-ID: <68edda66.17.mr2ice.fgrirsq@earthlink.net> Date: Mon, 13 Oct 2025 21:06:46 -0800 To: "eCS ISP Mailing List" In-Reply-To: Subject: Re: [eCS-ISP] script to rotate logs, old mails etc. and create a dated zip X-Mailer: MR/2 Internet Cruiser Edition for OS/2 v3.00.11.24/60 In , on 10/12/25 at 10:30 PM, "Ian Manners" said: Hi all, >> thanks, but i guess this script can't help me What makes you say this? Have you tried to edit the script as suggested? >It will, you simply have to modify it to your needs. I agree. As written, the script or a modified version will handle any log file that is closed when the script runs. There's a small window of time when the script will fail bacause because weasel is appending weasel.$$$ to weasel.log. A bit of error checking and a retry should handle this. Currently, the script is not capable of moving apache logs which are kept open. This requires a script that knows how to shut down and restart apache so that the move can succeed. >I use the same script to archive *.log files for both weasel and >FTPServer, then delete the logs after. All you need to do is change >.'log' to .'msg', the date part is already in the script, and becomes >part of the archived filename. I suspect Massimo wants to run the script for multiple .msg files. This will require simple modifications to the script so that the script does a SysFileTree collect the names of the files to rename and wraps the rename and move logic in a do loop. Steven -- ---------------------------------------------------------------------- "Steven Levine" Warp/DIY/BlueLion etc. www.scoug.com www.arcanoae.com www.warpcave.com ----------------------------------------------------------------------