How will you run the script in UNIX?
Answers were Sorted based on User's Feedback
Answer / najib
./scriptfile (file should be executable) or . ./scriptfile
(force the file to be executed even if the file doesnt have
execute permission)
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / pankaj cheema
1. simple open the terminal.
2. if you make file in vi then type sh and a space and file
name as $sh pankaj.sh.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / surendra bisht
actually first we have to change file permission to execute .
. to make file executable:
type
$chmod +x filename
. then for executing it :
type
$sh filename
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / abhishek
it can also be done this way "bash scriptfile" or "csh
scriptfile"
| Is This Answer Correct ? | 0 Yes | 0 No |
What is an incremental backup?
How to give root privileges without using SU/sudor ?
What are the mount and unmount system calls?
What is mutex?
What is a Region?
How to put a job in background & bring it to foreground?
process id for kernell process?
What is the difference between hard link & softlink?
What are different types of shells?
What are permissions in UNIX?
What is Fork swap?
1 Answers Infosys, SSI Small Scale Industries,
what is difference between kernel and shell?