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

How to remove weird filenames?

1 Answers  


How do you log in to a remote Unix box?

2 Answers  


What is YACC?

0 Answers   Cisco,


How do you create special files like named pipes and device files?

1 Answers   Wipro,


What is a Map?

0 Answers  






how to face veritas NetBAckup interview, where did i find all materials regrding veritas and give details on veritas certification

13 Answers   3i Infotech, ABC, Accenture, ACS, CTS, Genpact, GSK, HP, IBM, Lapiz, Lapiz Digital, Satyam, Symantec, TCS, Veritas,


Why do inode number start from 1 and not 0 ?

3 Answers  


What is file system in UNIX?

6 Answers   BMC,


why do you need to have a swap file system?

1 Answers  


What is Fork swap?

1 Answers   Infosys, SSI Small Scale Industries,


how to raise a suncase?pls explain step by step?

0 Answers   CGI,


How to give root privileges without using SU/sudor ?

1 Answers  


Categories