#!/bin/sh# Author: Athmane Madjoudj <athmanem@gmail.com> t_Log "Running $0 - check that jwhois can connect to whois server and get the info." # Dummy whois serverecho 'tf_jwhois_test_response' | nc -l 43 &sleep 1 whois -h 127.0.0.1 domain.tld | grep -q 'tf_jwhois_test_response' t_CheckExitStatus $?