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

Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.

2212


Give some situations where typing error can destroy a program?

1246


I have 2 files and I want to print the records which are common to both.

1165


Write a command sequence to find all the files modified in less than 2 days and print the record count of each.

1513


What is the use of a shebang line?

1196


What lives in a shell?

962


What is bash command used for?

1069


Why is shell scripting important?

1041


write a shell script to check the failed jobs?

4406


How to open a read-only file in the shell?

1127


Print the 10th line without using tail and head command.

2177


What is the command to find out today's date?

1141


Please give me example of " at command , contrab command " how to use

2794


What is ms powershell?

1019


What is the first line of a shell script called?

1089