Free Bash Scripts
All of the following scripts are provided free, courtesy of SagePost, Inc. You may use and share
them freely, provided that you retain all copyright notices. The user bears all responsiblity for
any risks related to the use of these scripts, which are provided without warranty.
To report bugs, request help, or submit improvements, please email
support@sagepost.com.
- getwebspeedstatus.sh
- Use this script alone or with progress.sh to get the status of ALL of your WebSpeed brokers defined
in your local ubroker.properties file.
Instructions, copy the text above, then paste into your text editor and save as "getwebspeedstatus.sh".
Next, use the chmod command to make this script executable: chmod +x getwebspeedstatus.sh
Now run it as root, or any other user with sufficient privileges:
Sample output:
[root@www scripts]# getwebspeedstatus.sh
Status:
PROGRESS PATCH Version 9.1C11 as of April 22, 2002
AdminServer is alive. (8545)
Broker Name : dev
Broker Status : ACTIVE
Broker: qatest not running (8313)
Broker Name : prod
Broker Status : ACTIVE
Broker: joe not running (8313)
Broker: steve not running (8313)
Broker: foobar not running (8313)
- findbig.sh
- Use this bash script to find big files on your Linux system. This simple
script finds the 50 or so largest files on your Linux system's hard drive, and lists them from
largest to smallest, with the full path, and size in human readable format:
Instructions, copy the text above, then paste into your text editor and save as "findbig.sh".
Next, use the chmod command to make this script executable: chmod +x findbig.sh
Now run it as root:
Sample output:
[root@www /]# chmod +x findbig.sh
[root@www /]# /scripts/findbig.sh
49M ./usr/websites/foo.com/wwwroot/apple.mpeg
42M ./usr2/baz/usr2/backups/usrbin.tar.gz
40M ./usr2/baz/foo.tar.gz
40M ./usr/donk/old/bigstuff.tar.Z
31M ./usr/www3/logs/access_log
29M ./usr/www3/logs/gzip.log
27M ./usr2/google/usr2/backups/dwdb.bak
27M ./usr/lib/libc.a
25M ./usr2/backups/secret.db.bak
25M ./usr2/downloads/installed/jdk-1.3.1_03.i386.rpm
23M ./usr2/oldbox/root.tgz
- e.sh
- Use this bash script to run the WebSpeed Messenger on your Linux system running Apache or any
other CGI-compatible webserver. This script
removes any "WService=" from the path, so that you can be assured that your users cannot
specify their own WebSpeed Broker.
Instructions, copy the text above, then paste into your text editor and save as "e.sh" in your
cgi-bin directory.
Next, use the chmod command to make this script executable: chmod +x e.sh
Now, remove wspd_cgi.sh from your cgi-bin so that it cannot be used. Use e.sh as the
messenger portion of your site's URL, or use an Apache alias to change it to anything you want.
Friday May 09, 2008 - Time to
call
us and start getting your website noticed!