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
What can scripts do?
What is path variable bash?
Is it possible to substitute "ls" command in the place of "echo" command?
What language is bash written in?
Is shell scripting difficult?
Is shell scripting useful?
What are the 3 standard streams in linux?
Please give me example of " at command , contrab command " how to use
What are "c" and "b" permission fields of a file?
write a shell script to check the failed jobs?
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 ?
What does debug script mean?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
How do I run a shell script in powershell?
Why are there shells on the beach?