How do I write a simple shell script?

Create a text (ASCII) file that is to contain the shell script. For example, I would use the pico editor to write a script that runs the program tar with all the parameters usually necessary to uncompress a tarball downloaded from the Internet (I never seem to remember the tar options). I decided to call my script "untar":




How do I write a simple Python program?

Quite like writing a shell script. Create/edit a text file that will contain your Python program:

pico try_python




How do I write a simple GUI program (using Tk)?

Tk is a GUI extension of the easy yet powerful tcl programming language. For example, I may use pico to create a text file that will contain a simple tk program:

pico try_tk




How do I compile a simple C program?

Start your favourite text editor and type in your source code. For example, I may use pico:

pico hello.c




Bash flow controls

GNU’s bash (Bourne Again Shell, named in punning homage to the Bourne shell and its author, Steven Bourne) is Linux’s default shell. Written by Brian Fox and maintained by Chet Ramey, bash’s most popular features are its rich command-line editing facilities and its job control abilities. From the programmer’s perspective, bash’s chief advantages are its customizability and the complete programming environment it provides, including function definitions, integer math, and a surprisingly complete I/O interface. As you might expect of a Linux utility, bash contains elements of all of the popular shells, Bourne, Korn, and C shell, as well as a few innovations of its own. As of this writing, the current release of bash is 4.*. Most Linux distributions, however, use an older version version. In this article we will have a quick look on flow controls.




Recovering from Loss of a Temporary Tablespace

A temporary tablespace is one used for storing “temporary” data. It is not necessary to back up temporary tablespaces, and indeed RMAN will never back them up. If you try to put a temporary tablespace into hot backup mode with ALTER TABLESPACE...BEGIN BACKUP; you will get an error. Since temporary tablespaces cannot be backed up, if damaged they cannot be restored—they must be replaced, instead.




Using Multiple Threads with Java

The Java language makes it particularly easy to do both multi-threaded programming andsocket programming. We will see in the next section that using threads is a basic technique for writing robust socket programs in Java. In this section, we will look at a shortexample program that creates a new thread class MyThread and creates 10 instances of it.




Which are the wildcars in Linux?

bash’s wildcard operators are *, ?, and the set operators, [SET] and [!SET]. * matches any string of characters and ? matches any single character. Suppose you have a directory containing the following files:




Special Characters

The wildcard and set operators are four examples of bash’s special characters - characters that have a specific meaning to bash. In this article  all special characters are listes, with a brief description of each one.




Basic Components of Struts

The Struts framework is a rich collection of Java libraries and can be broken down into the following major pieces:
Base framework, JSP tag libraries, Tiles plugin and a Validator plugin. A brief description of each follows.




prev [1] [2] [3] [4] next
Items 21 - 30 of 33 displayed.

Back to Home page