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

How to print pid of the current shell?

0 Answers  


What is shift command in shell script?

0 Answers  


What can scripts do?

0 Answers  


How can I set the default rwx permission to all users on every file which is created in the current shell?

0 Answers  


write a shell script to check whether all the directories in the path exist has read and write permission

1 Answers  






What is .sh file in mac?

0 Answers  


write a shell script to identify the given string is palindrome or not?

17 Answers   CTS, HP, IBM, InfoEst, Wipro,


What is bash command used for?

0 Answers  


What is sudo command?

0 Answers  


one folder contains lot of students name but I want to fetch hello with every student name individually using shell script

0 Answers  


How does shell scripting work?

0 Answers  


how is the oppurtunities for unix in the software

1 Answers  


Categories