bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trap on error


From: Brian S. Paskin
Subject: Re: trap on error
Date: Tue, 13 Nov 2001 07:38:47 GMT
User-agent: KNode/0.4

Paul Jarc wrote:

> "Brian S. Paskin" <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]