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 to enable the shell to know what program should be run
to interpret the script?

Answer Posted / tarun

The first line of any script shpuld specify the shell type
in which the script is run.
Syntax is
"#!/bin/xyz"
where xyz is the shell type in which the script must run.

As syntax in different shells vary so it is important to
make a global script.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we write bin bash in shell scripts?

1059


What is difference between shell and bash scripting?

1044


Which shell is the best?

1043


I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?

2231


State the advantages of shell scripting?

1100


What is path variable bash?

1093


What does echo $0 do?

1025


How do I run a .sh file on mac?

1253


Explain about "s" permission bit in a file?

1124


How do I run a script on mac?

1152


What is option in shell script?

1064


Suppose you execute a command using exec, what will be the status of your current process in the shell?

1118


What is the first line of a shell script called?

1136


Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.

1145


Is powershell a bash?

1132