Spotlight | Reviews | Current Issue | Newsletter | Subscribe | Contact |
Departments

user friendly

  linux-magazine.com » Online » News » SWS: The Shell Script as Web Server  

Print this page. Recommend
Slashdot it! Delicious Digg

SWS: The Shell Script as Web Server

Developer Brett Wynkoop has written the code for a simple web server called Simple/Small/Shell Web Server (SWS) in the form of a shell script.

SWS is ideal to serve static content on the web; however, the open source program lacks a CGI-Interface. The script works with Bourne-compatible shells and requires the standard Unix programs dirname, cat, and date. According to Wynkoop, installation consists of putting the program somewhere, making it executable, creating the document directory, and creating an entry in inetd.conf. He has tested his small server in FreeBSD, Solaris, and Linux.

SWS 1.0 creates index pages for directory listings on the fly and includes a "404 Page" for the "File not found" error message. The server is available for download as a stand-alone script and as a tarball, and includes a man page on the SWS-powered project home page.

The SWS is published with a BSD-license.

(Mathias Huber)

Comments


Print this page. Recommend
Slashdot it! Delicious Digg
Related Articles
USENIX LISA: When 1000 Computers are too Slow
Movable Type Now GPL’d
Facebook Releases Part of its Source Code
Linux New Media Acquires Linux Magazine Assets
Test Drive openSUSE 11.0
Google Android and the Dream Phone
Rikki's Open Source Exchange

Stop by Rikki's Open Source Exchange for dispatches from the world of women in open source.

Rikki Kite examines the experience of women across the spectrum of open source –
the people, projects, organizations, events, articles, issues, and news.

more...

 

In the US and Canada, Linux Magazine is known as Linux Pro Magazine.
Entire contents © 2009 [Linux New Media USA, LLC]
Linux New Media web sites:
North America: [Linux Pro Magazine]
UK/Worldwide: [Linux Magazine]
Germany: [Linux-Magazin] [LinuxUser] [EasyLinux] [Linux-Community] [Linux-Nachrichten] [Linux Events]
Eastern Europe: [Linux Magazine Poland] [Linux Community Poland] [Darmowe Programy Poland] [Open Source DVD Poland] [Linux Magazin Romania]
International: [Linux Magazine Brazil] [Linux Magazine Spanish]
Corporate: [Linux New Media AG]