Debugging shell scripts comes handy, especially when unexpected things happen. Trust me, they do. I use two different approaches, based on what’s needed: debug while running it or when ran in the background, maybe by […]
Category: script
Capture IP From PING
This is just a simple sed to capture IP address from ping. Note host must allow ICMP. This was tested on sh, bash and zsh. An example:
DNS Blacklist on WRT
Recently I found a forum entry with a script for blocking ad’s via DNS for WRT (or any other OS using sh and dnsmasq). However it was missing two features: a white list and a […]