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 company all about?

0 Answers  


how to separate the even and odd number generated from one file to two separate file i.e. even numbers in file1.txt and odd numbers in file2.txt

4 Answers   Infosys,


how to delete all the files with extension .dat rom a directory tree from root to third level in a single unix command?

4 Answers  


How do I run a shell script in powershell?

0 Answers  


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

0 Answers   Wells Fargo,






What is the use of .sh file?

0 Answers  


What is shift command in shell script?

0 Answers  


How do I run a bin bash script?

0 Answers  


How to customise the other shell?

2 Answers   Quest,


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

0 Answers  


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

0 Answers  


How do I stop script errors?

0 Answers  


Categories