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

What can scripts do?

1160


What is path variable bash?

1087


Is it possible to substitute "ls" command in the place of "echo" command?

1100


What language is bash written in?

1032


Is shell scripting difficult?

999


Is shell scripting useful?

1098


What are the 3 standard streams in linux?

1200


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

2841


What are "c" and "b" permission fields of a file?

1063


write a shell script to check the failed jobs?

4442


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 ?

2196


What does debug script mean?

1015


Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

1208


How do I run a shell script in powershell?

1174


Why are there shells on the beach?

1190