If you find Toast is running very slow on your Mac and you've tried all the other fixes, check to make sure you don't have any mounts defined on your Mac as Toast will continue to try and mount them ad nauseum - thereby causing the slowness. You can check Directory Utility to see if … Continue reading Roxio Toast Titanium on Mac OS X opening / running very slow – hello DTrace!
Shell Scripting
Simple Bash Scripting – Case Statement
Note that the ")" symbol is used to separate the list of selections from the action to be taken. Fall through is done using *, which catches all input that has not been specificed previously. Also ;; acts as a case break. Note that the statement is started with "case" and closed with "esac"
Using ssh-copy-id to Push SSH key to Authorized Keys
Everywhere I have ever worked we have always used complex scripts to push out id files to enable passwordless authentication from a bastion host. Today I stumbled across ssh-copy-id which is about as easy to use as it gets.
Quick and Dirty Sed Replace Command
Had to move my corporate kickstart server to a new vlan and re-ip it this past week. As a result I needed to update my kickstart config files so that they know where to look for the install media. Instead of editing each file directly I did the following to change the IP address in … Continue reading Quick and Dirty Sed Replace Command
Shell Script: List all RPMs and their Requirements on RHEL
The command below is sort of like a fingerprint for a box. It lists all rpms that are installed and the files that are required by those rpms.rpm -qa | sed -e "s,-[0-9]*\., ,1" | tee rpm-qa.txt | awk '{print $1}' | xargs rpm -q --requires | sort | uniq | tee rpm-qa-requires.txt
Shell Script: Test SSH Connectivty to a list of boxes
#!/bin/ksh ERROR=0 for SERVER in cat server.listdo ssh -n -o Batchmode=yes -o ConnectTimeout=30 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $SERVER "uname -n > /dev/null" > /dev/null 2>&1 if [ $? -ne 0 ] then echo "FAILED: $SERVER" ERROR=1 else echo "SUCCESS: $SERVER" fidone
Shell Scripting – Prompting for User Input.
First off let me start out this post by stating that I am a pretty lousy scripter. I just have not taken the time to write a lot of scripts. So I have created a new Category called "Shell Scripting" and plan to do my best to keep adding little "scriptlets" whenever I can. Prompting … Continue reading Shell Scripting – Prompting for User Input.