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 |
write a shell program to check wheather a given string is pallindrome or not?
How to handle the delimiter unit seperator in Unix
Explain about non-login shell files?
How do you read arguments in a shell program - $1, $2 ..?
I want to connect to a remote server and execute some commands, how can I achieve this?
write a program to display all the files from the current directory which are created in particular month
How to sort a result of Ls -l command based on columns. Ex. i want to sort 5th column from output of ls -l command.
What is sh in shell script?
Why are there shells on the beach?
what is the difference between writing code in shell and editor?
Is shell a scripting language?
How do I run a script on mac?