Tag Archives: bash

Yum: Checking for updates.

Here’s a quick script you can put in your cron rotation to check and see if there are any updates available and what they are: #!/bin/bash yum_output=/tmp/yum-check-update-output.txt python=/usr/bin/python1.5 yum=/usr/bin/yum $python $yum check-update > $yum_output yum_return_code=”$?” case $yum_return_code in 100) # … Continue reading

Posted in General, work | Tagged , , , , | 3 Comments

Init script for rsyncd.

Ed: another one that was sitting in “drafts” for months. #!/bin/bash # # Startup script for rsyncd. # # chkconfig: 345 86 16 # description: rsync rocks. # case “$1″ in start) echo “Starting rsyncd…” /opt/rsync/bin/rsync –daemon –ipv4 ;; stop) … Continue reading

Posted in General, work | Tagged , , , , , | 1 Comment

Supybot init script for Debian.

Supybot is a neat little IRC bot written in Python. I had been looking for a bot to do some logging of my favorite IRC channel (#nblug on irc.nblug.org). The setup was pretty easy and the documentation is nice, but … Continue reading

Posted in General, work | Tagged , , , , , | 3 Comments