How will you run the script in UNIX?

Answers were Sorted based on User's Feedback



How will you run the script in UNIX?..

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

How will you run the script in UNIX?..

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

How will you run the script in UNIX?..

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

How will you run the script in UNIX?..

Answer / hari

$sh file.sh

Is This Answer Correct ?    1 Yes 0 No

How will you run the script in UNIX?..

Answer / abhishek

it can also be done this way "bash scriptfile" or "csh
scriptfile"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix AllOther Interview Questions

What is INODE?

6 Answers   BMC,


very first process created by kernell?

4 Answers   TCS,


Is this the command to connect oracle from unix? sqlplus -s username/password. Then what is the -S here...????

1 Answers   TCS,


What does the ?route? command do?

2 Answers  


What steps are required to perform a bare-metal recovery?

1 Answers  






what happens when we create a file system?

1 Answers  


virtual terminal protocol is an example of which layer and works with which layer?

1 Answers   DOEACC, Virtusa,


What is 'inode'?

11 Answers   Infosys,


If Media Server fails. What are the steps to be followed? Can anyone please reply for this question Thanks, Ganesh

0 Answers   HCL, IBM,


what is the time for incident, problem and change management tickets?

0 Answers   CGI,


which is the best book for learning unix and linux?

6 Answers  


What is FTP?

5 Answers   BMC,


Categories