Weblogs for atrixnet

Posted by atrixnet on Wed 24 Sep 2008 at 16:33
Tags: ,
I'm sure there's some better way... but nonetheless, this works great:

for file in $(find . -type l); do if [[ "$(file $file|sed 's/.*broken.*/WOOT/')" == "WOOT" ]]; then echo "unlinking broken symlink '$file'"; unlink $file; fi; done;

How would/do you do it?

 

Posted by atrixnet on Wed 24 Sep 2008 at 16:29
Tags: none.
sudo find $(echo $PATH|sed 's/:/ /g') -iname '*YOUR SEARCH STRING HERE*'

You can increase the effectiveness of this search by first adding other directories to your $PATH if you want to find apps/scripts in other locations outside of what's already in your $PATH ... this is especially of note on RHEL systems and the like that exclude important paths like /sbin from your $PATH (yes, even root too) by default. Stupid Red Hat.

 

Posted by atrixnet on Mon 16 Jun 2008 at 09:12
Tags: ,
It is a rare treat to click over to debian-administration.org and see new articles there on the home page. Too rare. I wish there were more, and more often.

 

Posted by atrixnet on Mon 18 Jun 2007 at 19:07
Tags: none.
I am at a loss with getting Cacti to cooperate with snmpd on all nodes in a load balanced cluster (ipvs - keepalived) and I'm hoping somebody out there has some experience getting cacti to successfully query snmpd on remote hosts. Could anybody shed some light on this dark mystery for me?

 

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search