Go back to fronty page View most popular entries View latest additions Submit tutorials to UnixTutorials.info
UnixTutorials logo

Programming related tutorials


A web server in a shell script

Post date: March 14, 2006, 08:03 Category: Programming Views: 16332 Comments
Tutorial quote: Suppose you want to experiment a little with web pages and CGI's, but you don't want the hassle of installing the full Apache package. This quick and dirty shell script could just be what you need.

Put simply, a web server is an application that sends local text files over the network to the clients that request them. If you let another program (for example inetd) deal with the network part, the web server could be reduced to a mere cat "$filename" to stdout. Of course, the difficult part would be to extract that filename out of the HTTP request string: nothing that a Bash script cannot easily do!

C Lessons

Post date: March 2, 2006, 05:03 Category: Programming Views: 3053 Comments
Tutorial quote: Learn C programming from these daily lessons. They're eleven days ahead of you already so get busy...

CGI Programming on the World Wide Web

Post date: December 12, 2005, 17:12 Category: Programming Views: 2873 Comments
Tutorial quote: The Common Gateway Interface (CGI) emerged as the first way to present dynamically generated information on the World Wide Web. CGI allows the computer to generate Web pages instantly at the user's request rather than being written by someone in advance. And at the time of this writing, it remains the only stable and well-understood method for creating such pages. Java presents problems that have not yet been solved. Other products are currently just in the announcement stage.

CGI is fun. You can get a kick out of writing scripts that perform tricks for you, and the users enjoy the spice the scripts add to your Web pages. But CGI has a serious side too: It lets the Internet offer the kind of interactive, user-driven applications that modern computer users have come to expect. CGI opens up an entire class of modern applications to the Web.

Teach Yourself Perl 5 in 21 days

Post date: November 24, 2005, 20:11 Category: Programming Views: 4169 Comments
Tutorial quote: No previous programming experience is required for you to learn everything you need to know about programming with Perl from this book. In particular, no knowledge of the C programming language is required. If you are familiar with other programming languages, learning Perl will be a snap. The only assumption this book does make is that you are familiar with the basics of using the UNIX operating system.

Learn REXX fast

Post date: September 1, 2005, 01:09 Category: Programming Views: 3106 Comments
Tutorial quote: If you’ve programmed under IBM operating systems, you’ve undoubtedly heard of Rexx. Rexx is the scripting and command language IBM bundles with all its mainframe, mid-range, and lower-end operating systems. What you might not be aware of is that Rexx also runs on almost every other operating system in the known universe. You can download Rexx free for all versions of Windows┬«, Linux, UNIX┬«, BSD, Mac OS, and DOS, and many other systems. It even runs on the three major operating systems for handheld devices: Windows CE, Palm OS, and Symbian/EPOC32.

What this means is, if you learn Rexx, you’ll know a scripting language that runs everywhere from mainframes to handhelds—and everything in between. Rexx is a general-purpose language that's powerful enough for mainframes yet flexible enough for other platforms. Best of all, Rexx is easy to learn.

The Linux /proc Filesystem as a Programmers' Tool

Post date: June 22, 2005, 09:06 Category: Programming Views: 3235 Comments
Tutorial quote: My entry into systems programming was guided by my desire to understand further the operating systems I was working with daily as a contract UNIX and, later, Linux system administrator. The result of this was ifchk, a packet sniffer detector I wrote in C and released in June of 2003. ifchk initially was written under IRIX and then ported to Linux, mostly under the 2.4 kernel. The current ifchk revision, beta 4, recently was released and beta 5 is on the way.

My work on ifchk has allowed me to examine programmatically several areas of operating system functionality. Examples include the Linux netlink(7) and rtnetlink(7) facilities, device control--that is, network interfaces--via ioctl(2), signals and proc, the process filesystem. Proc and its ability to display a wide array of data concerning the runtime state of a system are the focus of our discussion here.

Mastering recursive programming

Post date: June 22, 2005, 09:06 Category: Programming Views: 2891 Comments
Tutorial quote: Recursion is a tool not often used by imperative language developers, because it is thought to be slow and to waste space, but as the author demonstrates, there are several techniques that can be used to minimize or eliminate these problems. He introduces the concept of recursion and tackle recursive programming patterns, examining how they can be used to write provably correct programs. Examples are in Scheme and C.

Breaking the SHELL

Post date: May 29, 2005, 01:05 Category: Programming Views: 3089 Comments
Tutorial quote: Shell scripts are a part and parcel of almost all software applications running on UNIX, and the use simply spans from a trivial script, managing automatic database backup to bunch of scripts collaboratively doing complex operation on regular expressions.

Though it's a mere design decision to partition modules between scripts and programming language, but I personally feel that they sometimes come very handy saving lot of time and lines of code, when compared to implementing the same functionality in the programming language in context.And in fact with some exceptions, complexity of a shell script can scale to that of codes in C language. Add to this the power of all those numerous UNIX commands, and just think through, what can be achieved by shell scripts.
Here I will discuss few topics mainly relevant to intermediate shell programmers

Developing GNOME Applications with Java

Post date: May 28, 2005, 00:05 Category: Programming Views: 3139 Comments
Tutorial quote: Design your application's GUI look in XML, write the code in Java and plug the whole thing in to the GNOME desktop.

Cruising with the snavigator

Post date: May 24, 2005, 18:05 Category: Programming Views: 2741 Comments
Tutorial quote: This article presents the snavigator, a powerful code analysis, cross-referencing and re-engineering tool which is indispensable for tackling the complexity of maintaining larger pieces of software and packages in an effective manner.
Web-based applications and online marketing solutions - LumoLink