#!/bin/bash
echo From: [EMAIL PROTECTED]
echo To: [EMAIL PROTECTED]
echo Subject: blah
echo
uptime
uname -a

Something like this will work if you pipe the output out to qmail-inject


On Wed, 4 Aug 1999, Eric Dahnke wrote:

>#!/bin/sh                                                              
>logger "WARNING!!! Somebody wants to log into the system!!!"           
>/var/qmail/bin/mailsubj "Login attempt at Mail Server!"
>[EMAIL PROTECTED]  
>exit 0                                                                 
>
>However, this script stays alive until the user closes the attempted
>telnet session. I assume it stays alive because mailsubj is sitting
>there waiting for the Cntrl D.
>
>Can someone suggest how to modify my script so that it runs and exits
>immediately. Maybe qmail-inject?
>
>
>Thx Eric
>
> 
>+ + + + + + + + + + + + + + + + + + + +
>Spark Sistemas
>   - presentado por IWCC Argentina S.A.
>   Tel: 4702-1958
>   e-mail: [EMAIL PROTECTED]
>+ + + + + + + + + + + + + + + + + + + +
>

  _    __   _____      __   _________      
______________  /_______ ___  ____  /______  John Gonzalez/Net.Tech
__  __ \ __ \  __/_  __ `__ \/ __  /_  ___/ MDC Computers/netMDC!
_  / / / `__/ /_  / / / / / / /_/ / / /__ (505)437-7600/fax-437-3052
/_/ /_/\___/\__/ /_/ /_/ /_/\__,_/  \___/ http://www.netmdc.com
[---------------------------------------------[system info]-----------]
 11:30am  up 12 days, 20:23,  3 users,  load average: 0.06, 0.12, 0.13

Reply via email to