From nobody Thu Jan 13 03:55:52 2022 X-Original-To: freebsd-questions@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 E8DE01960025 for ; Thu, 13 Jan 2022 03:56:41 +0000 (UTC) (envelope-from vogelke@pobox.com) Received: from rschi.hcst.net (mail.hcst.net [192.237.246.219]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.hcst.net", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JZ9bY66Wqz3pQj for ; Thu, 13 Jan 2022 03:56:41 +0000 (UTC) (envelope-from vogelke@pobox.com) Received: from ispcweb01.hcst.com (ispcweb01.hcst.com [192.52.183.243]) by rschi.hcst.net (8.14.4/8.14.4/Debian-4+deb7u1) with SMTP id 20D3tqUN031300; Wed, 12 Jan 2022 22:55:52 -0500 Date: Wed, 12 Jan 2022 22:55:52 -0500 From: Karl Vogel To: Ron Wills Cc: freebsd-questions@freebsd.org Subject: Re: Piping jobs output Message-ID: <20220113035552.GA11025@ispcweb01.hcst.com> Reply-To: vogelke+unix@pobox.com List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: 4JZ9bY66Wqz3pQj X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Wed, Jan 12, 2022 at 02:02:50PM -0600, Ron Wills wrote: > I have a number of shell scripts that scan various directories > updating files. They can be quite time consuming so I put > parts of the operations in the background and use "jobs" to > manage how many things I put in the background. With bash > this work beautifully but with FreeBSD's /bin/sh it's broken. Two thoughts: 1 - If any jobs involve scanning directories on the same physical device, run those sequentially or you'll probably just end up thrashing the drive. 2 - If you already have the Korn Shell installed, try using that; the commands you showed worked just fine when I tried them on KSH version 93u+ 2012-08-01. -- Karl Vogel / vogelke AT pobox DOT com / I don't speak for anyone at the moment It's amazing how far they've fallen considering how low they were to begin with. --Reddit comment about MS tech support, 6 Jan 2022