How to enable the shell to know what program should be run
to interpret the script?

Answers were Sorted based on User's Feedback



How to enable the shell to know what program should be run to interpret the script?..

Answer / 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

How to enable the shell to know what program should be run to interpret the script?..

Answer / prav gir

$SHELL

Is This Answer Correct ?    1 Yes 0 No

How to enable the shell to know what program should be run to interpret the script?..

Answer / guest

by Using command ksh/csh

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Shell Script Interview Questions

What is shell prompt?

0 Answers  


What is inside a seashell?

0 Answers  


What are the 3 standard streams in linux?

0 Answers  


What is sudo command?

0 Answers  


What is mac default shell?

0 Answers  


What is bash eval?

0 Answers  


There are three departments A,B and C.Write a query to display the names of all the persons( in departments other than A) who are paid higher than the person receiving the lowest salary in DEPT A

1 Answers   Wipro,


What does the sh command do?

0 Answers  


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

0 Answers  


Please anyone suggest atleast 2 good training institutes in Hyderabad, INDIA where i can learn unix shell scripting.

1 Answers  


How would you compare the strings in a shell script?

0 Answers  


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

0 Answers  


Categories