From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653652421877.tru64-unix-managers.marc@archive.invalid> From: WScates () amc ! jccbi ! gov Date: Mon, 16 Jul 2001 18:35:31 +0000 To: tru64-unix-managers Subject: [SUMMARY:]questions about hosts.deny X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653652421877 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------_=_NextPart_001_01C10E26.17B6B300" This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C10E26.17B6B300 Content-Type: text/plain; charset="iso-8859-1" Thanks for all the replies I received. The solution was proved by Frank Wortner, who suggested I use /bin/Mail and not /bin/mail (which does not support the -s subject). -Will -----Original Message----- From: WScates@amc.jccbi.gov [mailto:WScates@amc.jccbi.gov] Sent: Monday, July 16, 2001 11:42 AM To: tru64-unix-managers@ornl.gov Subject: questions about hosts.deny Hello everyone, I have a quick question about spawning executables in the /etc/hosts.deny file. I know that on a Sun box I can preform the following, and receive the correct responce: /ect/hosts.deny : ALL:ALL: spawn ( echo -e " Attempted connection from %c for %d (pid %p)" | mail -s "From ghost@$(uname -n) \: %d" ghostd@ids ) On Linux (specifically Slackware) I can preform the same thing with the following: ALL:ALL: spawn /bin/echo -e " Attempted connection from %c for %d (pid %p)" | /bin/mail -s "From ghost@$(uname -n)\ : %d" ghostd@ids I have tried both ways (and variants between) on my alpha testing box, which is a DEC 3000 running v4.0g, with no luck. Could someone point me in the right direction? Wheither it's documents or personal experience. Thanks, William Scates SMF UNIX Systems Administrator OAO / FAA @ MMAC wscates@amc.jccbi.gov ------_=_NextPart_001_01C10E26.17B6B300 Content-Type: text/html; charset="iso-8859-1"
------_=_NextPart_001_01C10E26.17B6B300-------Original Message-----From: WScates@amc.jccbi.gov [mailto:WScates@amc.jccbi.gov]
Sent: Monday, July 16, 2001 11:42 AM
To: tru64-unix-managers@ornl.gov
Subject: questions about hosts.denyHello everyone,
I have a quick question about spawning executables in the /etc/hosts.deny file.
I know that on a Sun box I can preform the following, and receive the correct responce:
/ect/hosts.deny :
ALL:ALL: spawn ( echo -e " Attempted connection from %c for %d (pid %p)" | mail -s "From ghost@$(uname -n) \: %d" ghostd@ids )
On Linux (specifically Slackware) I can preform the same thing with the following:
ALL:ALL: spawn /bin/echo -e " Attempted connection from %c for %d (pid %p)" | /bin/mail -s "From ghost@$(uname -n)\ : %d" ghostd@ids
I have tried both ways (and variants between) on my alpha testing box, which is a DEC 3000 running v4.0g, with no luck.
Could someone point me in the right direction? Wheither it's documents or personal experience.
Thanks,
William Scates
SMF UNIX Systems Administrator
OAO / FAA @ MMAC
wscates@amc.jccbi.gov