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

Answer Posted / keerthi

3 ways

1. sh scriptname.sh

2. If the script has execute permission -

./script.sh


3. If the script has execute permission and is
stored in the directory listed in PATH ----

script.sh or .script.sh

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ms powershell?

793


Is bash a shell script?

820


What does path stand for?

834


What are the two files of crontab command?

873


What is a program shell?

809


Explain about gui scripting?

846


What is batch file programming?

912


What is .sh file in mac?

769


What does $@ mean in shell?

783


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

3820


Write a command sequence to find all the files modified in less than 2 days and print the record count of each.

1212


What is the use of "$#" in shell scripting?

755


I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?

1893


How to print pid of the current shell?

784


Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.

2047