dinsdag 30 september 2008

list scsi devices linux

The 'lsscsi' command lists the scsi drives attached to your system.

ubuntu (aptitude install lsscsi)

Also checkout the file
/proc/scsi/scsi


and the command hwinfo --scsi

maandag 22 september 2008

trac Integrety Error

If your trac starts giving you Intgrety Errors try to do a:


trac-admin /your/trac/path resync

maandag 1 september 2008

loop throught files with bash

For-in loops don't work well when you have filenames with spaces in them


#!/bin/bash
ls *.pdf | while read i; do
j=`echo $i | sed s/\.pdf/\.swf/`
pdf2swf "$i" -o "$j"
done