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 |
Where cron file kept?
I want to read all input to the command from file1 direct all output to file2 and error to file 3, how can I achieve this?
How do I run a bin bash script?
What is shell terminal?
What is an sh file?
There are three departments A,B and C.Write a query to display the names of all the persons( in departments other than A) who are paid higher than the person receiving the lowest salary in DEPT A
How would you print just the 25th line in a file using smallest shell script?
How to find all the files modified in less than 3 days and save the record in a text file?
What is bash eval?
Explain about gui scripting?
What is the significance of $#?
what do u mean by $#,$* in unix programming?