Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jan 2022 22:55:52 -0500
From:      Karl Vogel <vogelke@pobox.com>
To:        Ron Wills <ron@digitalcombine.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Piping jobs output
Message-ID:  <20220113035552.GA11025@ispcweb01.hcst.com>
In-Reply-To: <Yd8z6haDopLrG2C7@digitalcombine.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220113035552.GA11025>