[x3d-public] Bash function to catch return value

John Carlson yottzumm at gmail.com
Sat Jul 22 19:24:53 PDT 2023


Yes, I just learned something new!

John

On Sat, Jul 22, 2023 at 9:01 PM Leonard Daly

Additional useful info:
https://unix.stackexchange.com/questions/164482/pipe-redirect-a-group-of-commands

> Leonard Daly
>
>
>
> On 7/21/2023 10:15 PM, John Carlson wrote:
>
> Linux folks:
>
> Does anyone have a bash function (not a separate script) to check the exit
> status of the passed in  pipeline or passed in exit status, print out the
> passed in error message, and exit the script if the exit status indicates
> failure?
>
> Thanks!
>
> Should be fairly easy to write?
>
> John
>
> _______________________________________________
> x3d-public mailing listx3d-public at web3d.orghttp://web3d.org/mailman/listinfo/x3d-public_web3d.org
>
> --
> *Leonard Daly*
> 3D Systems Engineering
> President, Daly Realism - *Creating the Future*
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230722/c281d80f/attachment.html>


More information about the x3d-public mailing list