JimsDojo
[ Home | Music | Visual Media | Tech | Blog ]

Shell Scripts

Name and Link Description Requirements
diskspace.sh Tests to see if a disk is over a given percentage full. Intended to be used as a cron job.

Usage:
diskspace.sh <disk-to-test> <threshold>
disk-to-test is the disk to test; eg: /dev/hda1
threshold is the percentage limit before an error is raised, e.g.; 90

Example use:
./diskspace.sh /dev/hda2 90 # raise an error when /dev/hda2 exceeds 90% capacity

The standard error is to just echo "DISK FULL", you will probably want to make it do something more suited to your need.

bash
df
grep
sed
newsbinripper Newsbinripper is a set of shell scripts that work as a frontend to nget and other tools (unrar, id3info, file, mogrify, par2repair) to automate the process of downloading daily updates from usenet, and generates a customisable website with galleries. I have hosted this on sourceforge. bash
nget
sed
grep
find
unrar
mogrify
par2repair
file
id3info

[ Shell Scripts | Source Code | Reports | Home Network | MAME Cabinet ]