Shell Scripting Articles

A shell script is a script written for the shell, or command line interpreter, of an operating system. It is often considered a simple domain-specific programming language. Typical operations performed by shell scripts include file manipulation, program execution, and printing text. Usually, shell script refers to scripts written for a Unix shell, while COMMAND.COM (DOS) and cmd.exe (Windows) command line scripts are usually called batch files, but here properties of both are discussed.

Many shell script interpreters double as command line interface, such as the various Unix shells, Windows PowerShell or the MS-DOS COMMAND.COM. Others, such as AppleScript, add scripting capability to computing environments without requiring a command line interface. Other examples of programming languages primarily intended for shell scripting include DCL and JCL.

IP Abuse Detection for DreamHost

Block IP Address .htaccessScan Apache logs for IP address that are probably evil, then generates an .htaccess file to DENY them all.

Continue Reading
Wednesday, January 16, 2008 / 1 comment

Apache Environment Variables CGI Script

printenv and test-cgi scriptMy improved version of the common printenv / test-cgi scripts for debugging Apache environment variables set in .htaccess files

Continue Reading
Monday, January 7, 2008 / comments

PHP5 Custom Install Shell Script Example

Today I successfully learned how to compile and run multiple custom php installations for a DreamHost account, and to get it working I came upon a simple shell script that I made a couple changes to.

Continue Reading
Sunday, December 16, 2007 / 1 comment

301 Redirect Cheatsheet

Ultimate Redirect Cheatsheet for multiple programming languages. Redirecting Users with Javascript redirect, meta refresh redirect, and php redirect, also htaccess methods, python, coldfusion, asp, perl, etc.

Continue Reading
Thursday, November 29, 2007 / 4 comments

Story by Author of PING for UNIX

Yes, it’s true! I’m the author of ping for UNIX. Ping is a little thousand-line hack that I wrote in an evening which practically everyone seems to know about. :-)

Continue Reading
Thursday, October 4, 2007 / comments

Speed Up Google Analytics with urchin.js

Ever notice that sometimes your sites take a while to load all the way because google’s urchin.js file is taking forever?
You may recognize this problem when you see something similar to this in your browsers status bar “Transferring data from google-analytics.com…”

Time To Setup?
4 minutes [...]

Continue Reading
Friday, September 14, 2007 / 9 comments

Wget Trick to Download from Restrictive Sites

Before
wget 403 Forbidden
After trick
wget bypassing restrictions
I am often logged in to my servers via SSH, and I need to download a file like a WordPress plugin. I’ve noticed many sites now employ a means of blocking robots like wget from accessing their files. Most of the time they use .htaccess to do this. So a permanent workaround has wget mimick a normal browser.

Continue Reading
Thursday, September 6, 2007 / 1 comment

Custom Webmaster Shell Environment

DreamHost Customized Bash Shell EnvironmentWebmasters often use SSH to remotely admin web sites and servers, learn how to make your shell colorful and powerful using my sample .bash_profile and you can be up and running in 30 seconds!

Continue Reading
Wednesday, July 4, 2007 / comments

Install multiple OS Without Cds

I had a CD-RW drive but being a struggling computer security researcher I had no money for blank cd-recordables. What follows is how I managed to install various operating systems on my computer (1 hard drive) without having to burn to a CD the ISO and then boot from that.

Continue Reading
Friday, June 22, 2007 / 5 comments

On-Demand MySQL Backup Shell Script

On-Demand WordPress MySQL database Backup Shell Script for DreamHost

Continue Reading
Thursday, May 31, 2007 / 3 comments

Search

Apache Software WebRing
Prev | Ring Hub | Join | Next

License and Disclaimer | Terms of Service | Privacy Policy |
© AskApache | International Ambitions | Glossary

Webmaster | Valid XHTML | Valid CSS