Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / manas

We can debug only by $? which contains the returned value
of last executed command.

If $? contains 0 value then command run successfully other
wise error occured while running command

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is shell scripting difficult?

962


How can I set the default rwx permission to all users on every file which is created in the current shell?

1429


How to find all the files modified in less than 3 days and save the record in a text file?

1062


c program to display the information of given file similar to givan by the unix or linux command ls -l

2221


Write the syntax for "if" conditionals in linux?

1119


Explain about login shell?

1125


How do I run a bin bash script?

1038


one folder contains lot of students name but I want to fetch hello with every student name individually using shell script

960


What is the difference between break and continue commands?

1102


Is shell scripting a language?

1048


What is the first line in a shell script?

1109


What command needs to be used to take the backup?

991


What can you do with powershell?

1143


What will happen to my current process when I execute a command using exec?

1055


Is shell a part of kernel?

1058