What is the use of script interpreter in shell scripting?

Answer Posted / tony

It's a forced attempt to try and let the script run with the Shell it was designed for. If the Shell is missing from a given system (which is unlikely if the Shell is a popular one), the script would fail. But, if the Shell is not a popular one, it will fail for a good reason, because the unpopular Shell has a high chance of not being compatible. Also, it's a method of indicating the system on which the script was written and intended for, just as a remark to any reader.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What can scripts do?

730


Explain about sourcing commands?

710


What is bash used for?

658


What is the use of echo in shell script?

632


c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l

3235






Explore about environment variables?

673


How will you pass and access arguments to a script in linux?

677


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

690


I want to connect to a remote server and execute some commands, how can I achieve this?

670


What are the default permissions of a file when it is created?

572


What is meant by dos operating system?

660


What is shell environment?

619


What does chmod do?

652


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.

1929


Differentiate between ‘ and ” quotes.

681