How can I Debug a shell scripts and Perl scripting??
or How do you debug a shell scripting and perl scripting (
at the compile time error or run
time error) in Unix environment ?

Answer Posted / ram

We can also use below command to debug the script
bash -xv <scriptname.sh>

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about login shell?

631


What does echo $0 do?

576


What is shell scripting used for?

568


Write the syntax for "if" conditionals in linux?

589


What is the equivalent of a file shortcut that we have a window on a linux system?

598






What is shell and terminal?

572


What are types of shells?

541


What is bash coding?

494


Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.

1849


What are the different types of shell scripting?

532


What is web script?

578


How do I set bash as default shell mac?

552


‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

548


How to print all array elements and their respective indexes?

501


Is shell a scripting language?

570