Very Short Knock Client Bash Script

All clients I saw were a bit too elaborate. So I wrote this one which only needs four lines and could do with less:

target=$1; shift
echo knock $target with knock $*
for i in $*; do
echo > /dev/udp/$target/$i;

No comments:

Post a Comment

I appreciate comments. Feel free to write anything you wish. Selected comments and questions will be published.