find -exec is a generally poor choice for doing something efficiently,
especially on z/OS.
find -exec is an extremely popular way to demonstrate a heaping dose of
impenetrable syntax
On Tue, May 31, 2022, at 6:05 PM, Paul Gilmartin wrote:
> On Tue, 31 May 2022 15:08:57 -0500, Kirk Wolf wrote:
>
> >It isn't really clear to me what you are trying to do other than some
> >variation on /bin/find and then processing the resulting list of files.
> >
> /bin/find is underappreciated.
> find <list> <predicates> -exec /bin/sh -xc "
> list
> of
> commands" "$0" {} \;
> can do remarkable things such as systematically renaming files.
>
> I wouldn't recommend relying on "the default shell of the user".
> for this unless the user supplies the shell commands and they
> operate with that user's privileges.
>
> >Are you are trying to start multiple concurrent processes? I can't tell.
> >
> Beware the z/OS limit on concurrent processes.
>
> --
> gil
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>
Kirk Wolf
Dovetailed Technologies
http://dovetail.com
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN