From nobody Fri Jul 01 21:58:51 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5BFF4876F1E for ; Fri, 1 Jul 2022 21:58:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LZTcD0PXmz4WNL for ; Fri, 1 Jul 2022 21:58:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DF000233CC for ; Fri, 1 Jul 2022 21:58:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 261LwpdT077782 for ; Fri, 1 Jul 2022 21:58:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 261LwpoV077781 for bugs@FreeBSD.org; Fri, 1 Jul 2022 21:58:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 264976] crontab task fail to work if stdout redirected Date: Fri, 01 Jul 2022 21:58:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dcheshkov@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656712732; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Qd7fBNsZQUkYKDc9MjgxO/4WPsDZjkTtl+f4OgSObME=; b=WIilOKHiFRMywi1y2arKt/2swPTlLURqJvpkL+95IwmDpng+80eKREebzxs0EUchyGRs4Z 2Fb4h1j9T4Nxxy9oP11mQXXKri5DuTWHFVhxEvEcUkN+7JcP0l4+gjeGtDq7QvCjgLv7gg 5wLiYFZvvvHue1Ta7q/GKp0e86WC8qWhEbF+OrnyCT6AySDoMAyNsCnkUFD39W4Vc4RuYD utEoPrCsUlTPBwkaC3yGAVIPqnRIezz++5iV0psW3FBBOp5W32LgBv5n6FfUaM9Nk9F/8E AhyNNX7cOM9ezmuTnRXvu89uRPdPjOeRjAYIPkuAUswpY7G4msHdvQ/qwGPVcg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656712732; a=rsa-sha256; cv=none; b=O6fe0carDljH27kgnfQnpsuDVjAOO5k3kFxxokeBJD8a5ZZbbWZAZDdOEpQY48a6qwO7q3 3XijKj3Oyg1WHC01f+aJa75auUdkEQQdwbHAzJAnQVZ0aRB31Fj1s66bf5NU7m3E8N4dy1 le116gKx5FgmbtAxszfNC+IMidGpNgjjM1X5ogP2atQ9PQjmRS+jgejGFaC81KAtRukjl/ 7m1yohsFZoo/ODtrUVczgzcBtHQ563gZdcA4LVR1YdlPv2QTgupqPIYwi4JPlmRP0mKKeO TkQRn/ZoaHUW+WcUcR+Cvn2WGH/1TMuEJtf4QfbfnP/hxGWBQ6+KI8ZO3COQFA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264976 --- Comment #2 from Dmitry Cheshkov --- Actually, problem arose with mrtg script. in 12.3-stable the following line in the root crontab worked fine */5 * * * * /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg > /dev/null 2>= &1 but in 13.1-stable does not. Removing of '> /dev/null 2>&1' makes mrtg work= ing. Also, I found, that addition of 'env LANG=3DC' before '/usr/local/bin/mrtg'= makes mrtg working with stdout+stderr redirection to /dev/null in 13.1-stable: */5 * * * * env LANG=3DC /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg > /dev/null 2>&1 --=20 You are receiving this mail because: You are the assignee for the bug.=