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 / hema
Using sh -x script argument you can debug(-x option).
Bash shell offers debugging options which can be turn on or
off using
set command.
=> set -x : Display commands and their arguments as they are
executed.
=> set -v : Display shell input lines as they are read.
Hope this answers your question.
| Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
What are the different types of commonly used shells on a typical linux system?
Why should we use shell scripts?
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.
How do I stop script errors?
What language is bash?
How can you find out how long the system has been running?
What is shell geeksforgeeks?
Explain about non-login shell files?
Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?
What is shell environment?
What is the command to find out today's date?
What is the purpose of scripting?
What is console line?
What is the difference between break and continue commands?
What is another name for a bash shell script that you might see?