how can you execute the shell scripts?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
How to print pid of the current shell?
What is shift command in shell script?
What can scripts do?
How can I set the default rwx permission to all users on every file which is created in the current shell?
write a shell script to check whether all the directories in the path exist has read and write permission
What is .sh file in mac?
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?
What is sudo command?
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
How does shell scripting work?
how is the oppurtunities for unix in the software