![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | 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. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to debug the awk script | chella | Shell Programming and Scripting | 2 | 11-08-2007 03:51 PM |
| Debug an Awk Script | mboro | Shell Programming and Scripting | 1 | 10-01-2007 03:05 AM |
| Difference between writing Unix Shell script and AIX Shell Scripts | haroonec | AIX | 0 | 04-11-2006 11:27 PM |
| disk space script debug - posted before | bryan | Shell Programming and Scripting | 3 | 04-28-2005 04:50 PM |
| “Ostream” object is not printing message on HP-UNIX for debug mode | heena | UNIX for Advanced & Expert Users | 0 | 09-13-2004 02:08 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
| Forum Sponsor | ||
|
|
|
||||
|
Hi,
Just a quick reply/hint as im not a shell expert , add "set -x" in the begining of the script, this will display all commands that are about to be executed, hopefully helping you to know where your shell might bug ... For 'handling exceptions' you can only catch signal like segfault, sigint (user hitting break key, etc ...) with the "trap" keyword ... Good luck hunting bugs ![]() |
|
|||
|
Hi,
on the overview,if your a naive user ,then the easiest way is to use bash -xv <your script> Assuming your using bash as your shell.... This will print the output line by line and will also include every statement with the corresponding actions,attributes and parameters you've passed!!! It will list out each arg as and when they are called in the script ,so that it will be easier to debug... Regards PS:if your script is lengthy,be ready to scroll pages at a time, helpful nevertheless ![]() |
|||
| Google UNIX.COM |