First page Back Continue Last page Overview Graphics
Hints for debugging a bash program
Your bash script like any other program can have bugs. The best way to debug is to write a large script by small steps and get proper output from different variables using command echo. If you have do loops, in order to make your program slow enough so to see the value of your variables, you can use command sleep to cause your program to pause for a given period of time at a specified spot on your script. You can also use command read.