OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: A quick question about scripting

From: Han Boetes (hanmijncomputer.nl)
Date: Thu Sep 02 2004 - 10:33:06 CDT


Tomas wrote:
> I know you all know better ways to do this :) but this is my first UNIX
> script, so please don't laught :)

muahahhahaa

;)

#!/bin/sh
set -e
sendmail -bd
zcat /var/log/maillog.6.gz| mail -s Test mymail.lt
kill -HUP $(head -n 1 /var/run/sendmail.pid)

# Han