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

Differentiate between ‘ and ” quotes.

0 Answers  


c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again

2 Answers  


What is the use of a shebang line?

0 Answers  


Hi Friends, I am currently Undergoing Course On Testing.I am Planning To Keep Fake Resume.Can any One tell me the ways to Prepare i.e, Real Time experience For Manual Testing. With Regards, Vikram

1 Answers  


Create a bash shell script that reads in a number from the user. If the number is 1, print out the date. If the number is 2, list the files in the current directory. If the number is 3, print out who is currently logged onto the system. If the number is anything else, print out an error message and exit. Name this script "various.sh"

4 Answers  






How to set an array in linux?

0 Answers  


madhar chod unix ke 10 commands dhang se likh nahi sakta hai

0 Answers   Cap Gemini,


In a file , how to retrieve the lines which are the multiples of 50 ? like 50,100,150th lines etc.

9 Answers   Amazon,


How to initialize a directory size to a variable??

2 Answers  


how will you find the total disk space used by a specific user?

0 Answers  


What is bash eval?

0 Answers  


defination of mapfile in winrunner?

0 Answers  


Categories