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 file system in UNIX?

6 Answers   BMC,


In this command sqlplus -s username/password what is -S and what's the use..???

1 Answers   IIIP, TCS,


What are the mount and unmount system calls?

1 Answers   HCL,


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

1 Answers   Qiscet,


Explain iostat, vmstat and netstat.

2 Answers  


How to put a job in background & bring it to foreground?

3 Answers  


Name key files or directories on a Windows system that should always be backed up?

2 Answers  


What is a pipe?

18 Answers   Fichtner,


What scripting languages do you know?

1 Answers  


What is a Region?

1 Answers  


why unix commands simpler rather than complex task

1 Answers   CGI,


does the stat() function call use the inode of the file to generate the information about a file? what is inode mostly used for?

1 Answers   HP,


Categories