News for hackers. Stuff that matters.
Re:Distributed grep client in Go by easytiger on Wednesday October 09, 2013 @04:02AM (#6519937)
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.
Re:Distributed grep client in Go by tsenart on Wednesday October 09, 2013 @05:53AM (#6520304)
Without 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/ $ pdsh -b -w '10.0.0.1,...,10.0.0.n' 'cat /var/log/your_log | grep "your_pattern"'
Re:Distributed grep client in Go by easytiger on Wednesday October 09, 2013 @07:05AM (#6520502)
Yea 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.
Re:Distributed grep client in Go by irtefa on Wednesday October 09, 2013 @11:52AM (#6522013)
I 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!
Re:Distributed grep client in Go by easytiger on Friday October 11, 2013 @09:23AM (#6532886)
no 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.

Re:Distributed grep client in Go by maguireb on Wednesday October 09, 2013 @12:31PM (#6522252)
Nice 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 :)