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 |
Have you used VI editor?
How can u doing testing in Unix environment ?
how to create a file system quota in HP-UX?
what is difference between milestone and run-levels in Solaris ?
What is a Map?
in unix how to change old name to new name
what is the name os the first os and tell me the year when it was discovered
what is the time for incident, problem and change management tickets?
What is the difference between internal and external commands?
13 Answers BPL, DOEACC, Engro, Kuvempu University, NIIT, TCS,
virtual terminal protocol is an example of which layer and works with which layer?
What are the events done by the Kernel after a process is being swapped out from the main memory?
What are permissions in UNIX?