From owner-freebsd-questions@freebsd.org Mon Oct 30 23:08:51 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC131E25F25 for ; Mon, 30 Oct 2017 23:08:51 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from gate.utahime.jp (ipq210.utahime.jp [183.180.29.210]) by mx1.freebsd.org (Postfix) with ESMTP id 7F3EE75AE0 for ; Mon, 30 Oct 2017 23:08:50 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) by gate.utahime.jp (Postfix) with ESMTP id 4E55619F4E; Tue, 31 Oct 2017 08:08:43 +0900 (JST) Received: from eastasia.home.utahime.org (localhost [127.0.0.1]) by localhost-backdoor.home.utahime.org (Postfix) with ESMTP id DDEFA4F1A; Tue, 31 Oct 2017 08:08:42 +0900 (JST) Received: from localhost (rolling.home.utahime.org [192.168.174.11]) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 9F89F4F19; Tue, 31 Oct 2017 08:08:42 +0900 (JST) Date: Tue, 31 Oct 2017 08:07:31 +0900 (JST) Message-Id: <20171031.080731.85349314815802482.yasu@utahime.org> To: freebsd-questions@freebsd.org Subject: Ways to help investigating behavior of periodic scripts From: Yasuhiro KIMURA X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Oct 2017 23:08:51 -0000 Hello all. As you know cron(8) executes daily periodic scripts at 03:01 of every day and 2 mails are sent to root reporting output of each script. On my home server (11.1-RELEASE amd64) these mails usually arrive before 03:10. But sometimes they arrive after 03:30 and in rare case after 04:00. The delay is not problem for me but I would like to know why it happens. So are there any ways to help investigating this delay? (Option to make periodic(8) write start and end time of each script to syslog, for example.) BTW I'm not sure if this ML is best place to ask this question. So plese let me know if I should move to other ML. Best Regards. --- Yasuhiro KIMURA