From nobody Fri Jul 01 12:24:01 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 44C458B6040 for ; Fri, 1 Jul 2022 12:24:02 +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 4LZDrx6CQqz3sCm for ; Fri, 1 Jul 2022 12:24:01 +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 B3CE21B050 for ; Fri, 1 Jul 2022 12:24:01 +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 261CO19a085313 for ; Fri, 1 Jul 2022 12:24:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 261CO17F085312 for bugs@FreeBSD.org; Fri, 1 Jul 2022 12:24:01 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 12:24:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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=1656678241; 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; bh=Lbj+3jta01zb/oQy53MOAfwXba0gxtJRmQnLH8Si8tU=; b=ekBXKHSEcUYutRBMm2RUIFACRmaqgxUN/Xcki5W/tb4h5ZaSxSzQ3Dx3i4qjiaATkxIsZx 1opAawgKnePvdFX49wGqa2e7FKWyFMoMIPJ9qoB7NEIs8Qai8uui7ZY13DxNZ98IyuIoS8 KdDuU19Uuxgbyk7yMC5frH8mNmwjZi/ejt6590YaCEj5tSxnxVz7O66JGwndWNckjWuMnD Jyjmr0/B1TF7cO4IGOXHwLHaaS3vxXnsYfbrsjEtRqwakbwETPljk6LMhOHF3I7YGDyhh7 sgMw0X2xZO2uh5jQoRdxO+4M/Utg3oLSJLAmAWAR51WBJuCU4wofrSjn09leTA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656678241; a=rsa-sha256; cv=none; b=l3xOSzxahoJz3jczle8WNlnAU658Kg+vtVBKfeYNuXy680YslKy9Aa/5I+a6siYLvhZzjT 4agTAZ1biCjTi9htFv7Vfo4q0Br++wCJlouvJw/ZCgI0jtUPj2RshZk4oIwARZ4I2bZW7b ODljuDzkkIu5IUn4pS+dNvcFrWYdcCkjSZmwGHd1YOm4m7ZnurPCmLDiBeKJdjg3HSMWh/ mkJLgp8Kg1h3LXgHaJNP2b/vH7mQR2hD6UqUp0wxJssyB31vSJ+q3bAP9n9SHswYCXpd4p VQRs1YvKRebf0Zvr39659YnVpL9inoLmogRGT+TdMJPotrMMNwVQH/hNz3d+ww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264976 Bug ID: 264976 Summary: crontab task fail to work if stdout redirected Product: Base System Version: 13.1-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: conf Assignee: bugs@FreeBSD.org Reporter: dcheshkov@gmail.com The following periodic task fail to work if stdout/stderr redirection appen= ded. */5 * * * * /bin/date | /usr/local/bin/test2 > & /dev/null - not work, but */5 * * * * /bin/date | /usr/local/bin/test2 works well. And=20 /bin/date | /usr/local/bin/test2 > /dev/null 2>&1 resulted in 'Ambiguous output redirect'. /usr/local/bin/test2 - just short perl script: #!/usr/local/bin/perl open(OUT, ">>/var/log/test.log"); print OUT ; close(OUT); exit(0); So, how make periodic tasks like this to work? This issue arose after migra= tion from 12.3-STABE to 13.1-STABLE. Whith best regards, Dmitry Cheshkov --=20 You are receiving this mail because: You are the assignee for the bug.=