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 do you list the files in an UNIX directory while also showing hidden files?

4 Answers  


Explain iostat, vmstat and netstat.

2 Answers  


Could you tell something about the Unix System Kernel?

3 Answers   ITCO, TCS,


. Using sed and grep, write a command which lists files and directories with following properties: (i) created in 1999 (ii) with user's as owner and group

0 Answers  


What are the read or write or execute bits on a directory mean?

2 Answers  






What is paging?

2 Answers   BMC,


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,


How to find the version details of unix? if any application is installed in unix OS how to find the version of that application is it possilbe or not? pls let me know cmd in detail.

5 Answers   HCL,


what happens when we create a file system?

1 Answers  


What is FTP?

5 Answers   BMC,


Give the command to display space usage on the UNIX file system.

6 Answers  


What is the difference between internal and external commands?

13 Answers   BPL, DOEACC, Engro, Kuvempu University, NIIT, TCS,


Categories