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 group the commands in shell scripting?
Is it possible to substitute "ls" command in the place of "echo" command?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
What is the way to do multilevel if-else's in shell scripting?
What does debug script mean?
Write a shell program to test whether a given number is even or odd?
A file has multiple records each having three 30-bit long fields(field1,field2,field3).There is also a lookup file,LOOK_UP.dat.Now, we need to consider only the last ten digits of field1 and lookup the file LOOK_UP.dat. If there a match then field2 and field3 should replaced with corresponding data from the lookup file. otherwise that particular record,for which there is no match, should be stored in a seperate file.
How to customise the existing shell?
How do I run a script from command prompt?
What are the different methods available to run a shell script?
What are the two files of crontab command?
What is the command for " how many shell is running in your system or how many shell supported by your system " ?.