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

Have you used VI editor?

1 Answers   BMC,


How can u doing testing in Unix environment ?

2 Answers   TCS,


how to create a file system quota in HP-UX?

1 Answers   HCL,


what is difference between milestone and run-levels in Solaris ?

0 Answers  


What is a Map?

0 Answers  






in unix how to change old name to new name

5 Answers  


what is the name os the first os and tell me the year when it was discovered

1 Answers   Qiscet,


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

0 Answers   CGI,


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?

1 Answers   DOEACC, Virtusa,


What are the events done by the Kernel after a process is being swapped out from the main memory?

0 Answers  


What are permissions in UNIX?

5 Answers   BMC, University,


Categories