![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trap | jeenat | Shell Programming and Scripting | 1 | 04-07-2008 03:07 AM |
| trap command | onlyc | UNIX for Dummies Questions & Answers | 3 | 07-11-2006 12:15 AM |
| Building a better mouse trap, or How many lines of code does it take to trap a mouse? | mph | Shell Programming and Scripting | 4 | 04-06-2006 01:02 PM |
| trap | whatisthis | Shell Programming and Scripting | 9 | 04-11-2005 01:39 PM |
| Need help with trap | marc6057 | UNIX for Advanced & Expert Users | 7 | 10-23-2001 12:45 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi
Our problem is knowing: What is the "best" way of simulating a TRAP for ERR within a function, since we know this will not work directly with ksh93 and aix5. How can we save the error encountered in the function and then deal with it in the calling script? Thanks! |
| Forum Sponsor | ||
|
|
|
|||
|
Thanx,
That helps but could be "messy" if function is complicated. We found that the original TRAP for ERR inside functions is actually fixed in later versions of AIX 5. Also, If the function is dotted the TRAP for ERR will work in our version of AIX. Is it "normal" to dot functions? Cheers |