Gil, it works find for one level -exec of find command. I want it to run more commands by chaining.
ITschak ITschak Mugzach *|** IronSphere Platform* *|* *Information Security Continuous Monitoring for z/OS, x/Linux & IBM I **| z/VM coming soon * On Sun, Jan 23, 2022 at 4:16 PM Paul Gilmartin < [email protected]> wrote: > On Sun, 23 Jan 2022 14:08:02 +0200, ITschak Mugzach wrote: > > >I am trying to chain some commands by using a primary command -exec > >subcommand1; subcommand2; \; > > > >for some reason, uss doesn't see the ending (slashed) semicolon. In order > >to ignore the confusion, I also tried > > > Please be very liiterao and post a transcript, such as: > 493 $ ( set -x; date; uname -s; \; ) > -bash 6+ date > Sun Jan 23 07:02:44 MST 2022 > -bash 6+ uname -s > Darwin > -bash 6+ ';' > -bash: ;: command not found > 494 $ > o are you doing this with a POSIX shell? > o is TSO/ISPF initefering with the ";"? > o "-exec" is not a shell command. > > >primary command -exec subcommand1 && subcommand2 && ... &&\; > with no > >success. Any ideas? > > > "&&" means "Execute the second command only if the first > command succeeds." > > Your question might be more topical on: > <mailto:[email protected] > ?subject=Info&body=INFO%20MVS-OE%0D%0AThanks%0D%0A> > > -- gil > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
