how can you execute the shell scripts?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does chmod do?

580


What is basename in shell script?

595


How will you pass and access arguments to a script in linux?

602


How to redirect both standard output and standard error to the same location?

650


what is info area how many types?

2302






What are zombie processes?

581


Write a command sequence to find the count of each word?

548


Explain about debugging?

614


How will you emulate wc –l using awk?

925


How do I debug a shell script?

573


Where are cowrie shells found?

586


c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again

5283


How will you find the 99th line of a file using only tail and head command?

2004


What does the sh command do?

614


What is shell chemistry?

548