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 |
why unix commands simpler rather than complex task
what is RAID 1+0?
What are the main differences between Apache 1.x and 2.x?
From command line how will you add a user account?
How do I log into a remote Unix machine(as a root/normal user)?Please specify with command user and argument.
very first process created by kernell?
Explain the read, write, and execute permissions on a UNIX directory.
Give two UNIX kernel parameters that effect an Oracle install
which is the best book for learning unix and linux?
How does the inode map to data block of a file?
What is the difference between windows environment and Unix environment ?
what is difference between kernel and shell?