Weblogs for atrixnet
#4
Posted by atrixnet on Wed 24 Sep 2008 at 16:33
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?
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?
#3
Posted by atrixnet on Wed 24 Sep 2008 at 16:29
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.
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.
[0 Comments
| Add Comment
|
]
#2
Posted by atrixnet on Mon 16 Jun 2008 at 09:12
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.
#1
Posted by atrixnet on Mon 18 Jun 2007 at 19:07
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?