answersLogoWhite

0


Best Answer

Shell scripts are not compiled; they are interpreted (and therefore do not need to be compiled). Just type in the name of the shell script and any parameters it needs to execute.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you compile and run shell script of factorial?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the command to execute a shell script?

If the shell script is readable and executable then to execute it just type the name of the shell script file. Otherwise, you can explicity call a shell interpreter to run the file as a shell script, i.e., ksh myfile


Can you execute a shell script if you do not have read permission for the file containing the script?

No, the shell needs both execute and read permissions to run the script.


How do you compile and run the shell programs through vi-editor in Linux?

You don't Shell files/programs are not compiled. If you want to run a process through 'vi' then use the ':!' 'ex' command to shell out and execute it.


What is the command to compile and execute a factorial program in java?

Compile: either use the "javac" command or - more conveniently - look for the "compile" command in some of the menus of your IDE. Run: after compiling, use the "java" command or - more conveniently - look for a "run" command in your IDE. The exact commands in the IDE will vary, depending will vary depending on the chosen IDE.


Which command in unix is used to run the script immediately?

As long as the script file is readable and executable, just type the name of the script and it will execute immediately. Otherwise, you can call the shell interpreter and have it run it immediately such as: bash ./thefile where ./thefile is the script you want to run. Or, substitute the shell interpreter you wish to use instead of bash, such as sh, ksh, tcsh, csh, etc.


What line is necessary at the beginning of a script to tell the OS what to use to run the script?

The special line at the beginning of the script is only necessary if you want the script to be run by a certain command interpreter that is different from your logon shell or because you don't know what environment the user of the shell might be running in. It is a special comment line that looks like: #!/command-name such as: #!/usr/bin/ksh which causes the ksh interpreter to be used for the rest of the shell script.


How do you write a shell script to enlist the processes being run?

#!/bin/sh PS -a


How do you run and compile a java applet program?

One can run and compile a Java applet program by agreeing to the terms and downloading it. It is possible to get a compiler online that will compile and run Java programs.


Is overriding done at compile time or run time?

compile time


How can you compile or run the JavaScript programming?

JavaScript programs cannot be compiled, but it is easy to run them if you embed them into a HTML file, and open it in your browser. Note: If you want a example, select menu-command View/Source and search for '<script'


How can you compile or run the java programming?

To compile:javac MyProgram.javaTo run:java MyProgramHowever, you can also do everything (both compile and run) from within an IDE.


What command should be given to compile a C program from the command prompt?

You need a compiler. Gcc or g++ can be run from a unix shell, or a windows implementation of one like cygwin.