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.
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
No, the shell needs both execute and read permissions to run the script.
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.
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.
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.
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.
#!/bin/sh PS -a
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.
compile time
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'
To compile:javac MyProgram.javaTo run:java MyProgramHowever, you can also do everything (both compile and run) from within an IDE.
You need a compiler. Gcc or g++ can be run from a unix shell, or a windows implementation of one like cygwin.