![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| remove lines based on score criteria | smriti_shridhar | Shell Programming and Scripting | 2 | 12-02-2008 01:03 AM |
| Script move and rename based on matching criteria | braidomik | Shell Programming and Scripting | 3 | 08-26-2008 12:35 PM |
| Getting exit status of child in trap handler | rimon | Shell Programming and Scripting | 4 | 06-17-2008 02:05 AM |
| trap command | mobile01 | UNIX for Dummies Questions & Answers | 1 | 11-30-2006 11:54 AM |
| Select records based on search criteria on first column | shashi_kiran_v | UNIX for Dummies Questions & Answers | 2 | 12-02-2005 01:49 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
TRAP Command --use based on exit criteria
Hi all,
I am using the trap command in my script, and I want it to trap the signal based on the exit code the script returns. can anybody tell me how can I use "if loop" for "trap" command. I want to print "terminated by user" if signal is SIGINT or 2 "failure" if signal is not 2 and not 0 "SUCCESS...!!!" if signal is 0 Thanks in advance |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|