TCP Wrappers
Spawn
Launches a shell command as a child process. In the following example, clients attempting to access ssh services from the example.com domain are quietly logged to a special file:
sshd : .example.com \
: spawn /bin/echo `/bin/date` from %h>>/var/log/sshdallowed.log \
: allow
# %h Returns the client’s hostname or IP address