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 does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

1045


What is shell variable?

904


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

2197


How will you emulate wc –l using awk?

1508


What is mac default shell?

1083


Write the syntax for "if" conditionals in linux?

1099


What is bash coding?

910


Write down the syntax for all the loops in shell scripting.

1115


How to get the 3rd element/column from each line from a file?

1173


Where are cowrie shells found?

998


Explain about the exit command?

959


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.

2190


What is a shell script? Can you name some of its advantages?

1037


What is wc in shell script?

965


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

1323