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

Search results for A web server in a shell script


A web server in a shell script

Post date: March 14, 2006, 08:03 Category: Programming Views: 16492 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!

Breaking the SHELL

Post date: May 29, 2005, 01:05 Category: Programming Views: 3214 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

UNIX Shell Programming QuickStart

Post date: April 13, 2005, 02:04 Category: Programming Views: 3278 Comments
Tutorial quote: If you read, write, or maintain programs, the following samples will give you a quick overview of the construction and style of a shell script and introduce you to some of the constructs and syntax found in these programs.

openSUSE Network Installation/Upgrade Without CD/DVD

Post date: January 12, 2009, 08:01 Category: Installing Views: 2697 Comments
Tutorial quote: Installing or upgrading the opensuse is fairly easy using CD, or net boot CD but many times it happen the we need to install or upgrade the OS using these media, to solve this problem we got a script called setupgrubfornfsinstall

setupgrubfornfsinstall is a dialog based shell script to prepare remote network installations. The script downloads kernel and initrd of the distribution and creates a boot loader entry for them.

An Easy Way To Install Gnome Shell

Post date: September 21, 2009, 16:09 Category: Benchmarks Views: 3692 Comments
Tutorial quote: Gnome Shell consists of two big parts: the panel and overlay. The panel part is pretty much obvious - system tray, user name, and clock stuff and the activities button which activates the overlay -, and about the "overlay", well, take a look at this screenshot:

Basically, it allows the user to concentrate on switching to a new activity by opening new applications, documents, or both. It displays all the current user workspaces and open windows and facilitates organizing them.

So far, the Gnome Shell installation was quite time-consuming, so most people didn't try it until now. With time, however, this has changed, and you can install it by running a script. Here is how:

Automating the Login Script

Post date: April 17, 2005, 10:04 Category: Miscellaneous Views: 2479 Comments
Tutorial quote: In a perfect world, you could spend a few weeks creating a system and the result would be a system that never required manual maintenance or modifications. Whether this ideal will ever be achieved is debatable, but it definitely won't happen in the near future. In the meantime, we still have to do things manually, even if only once in a while. When I must do things manually, I'm not usually happy about it. In fact, it usually means that there has been an emergency, so other people aren't happy about it either. In times like this, it is nice to have a consistent and efficient user interface on every machine. The information and examples presented in this article assume that you are using the bash shell. However, you can modify all of the scripts so that they work in other shells. In some cases, they might even work unmodified (like in the standard Bourne Shell [sh]). Other shells will also work, but they might have different methods for changing the prompt and creating command aliases. The principles in this article should be relatively easy to adapt to the shell of your choice.

Bourne / Bash shell scripting tutorial

Post date: October 11, 2006, 20:10 Category: Programming Views: 6108 Comments
Tutorial quote: A Bourne Shell Programming/Scripting Tutorial for learning about using the Unix shell. Learn linux / Unix shell scripting by example along with the theory. We'll have you mastering Unix shell scripting in no time!

Execute Commands on Multiple Linux or UNIX Servers part II

Post date: December 28, 2005, 10:12 Category: System Views: 3319 Comments
Tutorial quote: I have already covered how to execute commands on multiple Linux or UNIX servers via shell script. The disadvantage of script is commands do not run in parallel on all servers. However, several tools exist to automate this procedure in parallel. With the help of tool called tentakel, you run distributed command execution. It is a program for executing the same command on many hosts in parallel using ssh (it supports other methods too). Main advantage is you can create several sets of servers according requirements. For example webserver group, mail server group, home servers group etc. The command is executed in parallel on all servers in this group (time saving). By default, every result is printed to stdout (screen). The output format can be defined for each group.

Managing Xen With Xen-Tools, Xen-Shell, And Argo

Post date: November 5, 2006, 21:11 Category: System Views: 4263 Comments
Tutorial quote: This guide describes how to install and use xen-tools, xen-shell, and Argo on a Debian system. All three packages provide useful tools for the administration of virtual Xen machines. Xen-tools is a collection of Perl scripts that allow you to easily create, update, and delete Xen guest domains. The xen-shell provides a command-line interface to owners of Xen domains so that they can manage their Xen domains without the help of the server administrator. And with Argo, you can control Xen domains through a web interface or through a menu on the command line.

Creating MySQL Backups With AutoMySQLBackup On Ubuntu 9.10

Post date: February 19, 2010, 11:02 Category: Miscellaneous Views: 3004 Comments
Tutorial quote: AutoMySQLBackup is a shell script that lets you take daily, weekly and monthly backups of your MySQL databases using mysqldump. It can back up multiple databases, compress the backups, back up remote databases, and email the logs. This tutorial explains how to install and use it on an Ubuntu 9.10 server.
Web-based applications and online marketing solutions - LumoLink