Archive for the ‘Uncategorized’ Category

Replace symlinks with source

Tuesday, February 16th, 2010


find . -type l -exec stat {} --format=%N \; | /root/move_symlink.pl | sh
find . -type f -exec chmod 644 {} \;
find . -type f -exec chown apache:apache {} \;

move_symlink.pl

#!/usr/bin/perl
while(<>) {
/^.(.*?)' -> .(.*)'$/;
print "mv '$2' '$1'\n";
}

nagios, speedfan und sfsnmp

Sunday, February 7th, 2010

tried to get speedfan, sfsnmp and nagios to work together. no success :(