3 ms·
I don't know if this is meant to be actually used, but clearly ssh with shared keys and a trivial bash script would be better than just shelling out to grep fro
by easytiger 13y ago
I don't know if this is meant to be actually used, but clearly ssh with shared keys and a trivial bash script would be better than just shelling out to grep from go itself. Fairly pointless really.
- tsenart 13y agoWithout the context of why this was developed, I have to agree with easytiger's point of pointlessness. Perhaps it was just an exercise in curiosity and exploration of the language. If not, I would use pdsh instead http://sourceforge.net/projects/pdsh/ http://sourceforge.net/projects/pdsh/ $ pdsh -b -w '10.0.0.1,...,10.0.0.n' 'cat /var/log/your_log | grep "your_pattern"'
- easytiger 13y agoYea i dont mind things like this being posted, but some context would be good. It seems to present itself like a serious tool which might dupe some inexperienced people.
- irtefa 13y agoI was not intending to confuse people. This is the first time I posted something on hn. I will give more context when I post something next time. Thanks!
- easytiger 13y agono worries. HN does have quite a big love affair with go. How long have you been writing in it? I have an idea for autility id like to implement in it for a bit of fun.
- maguireb 13y agoNice one on pdsh! Hadn't heard of it before but will definitely be using it from now on. No more bash for loops with ssh :)