Paul Jarc wrote:
> "Brian S. Paskin" <brian@paskino.com> wrote:
>> I am not familiar with the traps under Linux. Which trap should I use if
>> I receive an error (ie. command returns value > 0) within my bash script?
>
> What do you mean by "trap"?
>
>
> paul
>
trap "function_name" ERR
Under the AIX platform I would write something like this is in a ksh script
and it would call the function when a called function in the script
returned a value > 0. I do not know what the equivilant is for ERR under
Linux/bash.
Many thanks,
Brian