how can you execute the shell scripts?

Answers were Sorted based on User's Feedback



how can you execute the shell scripts?..

Answer / chandru

If the path variable does not contain ur current
directory,then you can execute the script by giving
$./scriptname
If you include your current directory in path variable then
$scriptname

or
If u want to invoke new shell
$ ksh scriptname

Is This Answer Correct ?    3 Yes 1 No

how can you execute the shell scripts?..

Answer / manhar chavan

sh File_Name.sh
then press enter

Is This Answer Correct ?    2 Yes 0 No

how can you execute the shell scripts?..

Answer / pschavan

Script with extension ".sh" or ".ksh" can be excecuted on
command line.

e.g abc.sh or abc.ksh

Is This Answer Correct ?    3 Yes 4 No

how can you execute the shell scripts?..

Answer / green gene

Step 1. Include an #!<full path to an interpreter>
Step 2. chmod {u,g,o,a}+x <filename>
Step 3. offer blindfold
Step 4. offer last cigarette
Step 5. execute.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Shell Script Interview Questions

What is shell application?

0 Answers  


Explain about non-login shell files?

0 Answers  


How would you compare the strings in a shell script?

0 Answers  


What is the significance of $#?

0 Answers  


What lives in a shell?

0 Answers  


What are the different methods available to run a shell script?

2 Answers  


How does path variable work?

0 Answers  


Can we run shell script in windows?

0 Answers  


What is "test"? How it is used in shell scripting?

2 Answers  


Why are shell scripts used?

0 Answers  


What does chmod do?

0 Answers  


Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.

0 Answers  


Categories