Date: Thu, 19 Jul 2001 12:31:10 +0200 From: Olivier Cortes <olive@deep-ocean.net> To: BSD Freak <bsd-freak@mbox.com.au> Cc: freebsd-questions@freebsd.org Subject: Re: Shell scripting gurus I nedd your help Message-ID: <20010719123110.C2150@APastourelles-102-1-2-26.abo.wa> In-Reply-To: <3320f53329d6.3329d63320f5@mbox.com.au>; from bsd-freak@mbox.com.au on Thu, Jul 19, 2001 at 08:55:28AM %2B1000 References: <3320f53329d6.3329d63320f5@mbox.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
----------------------------------- #!/bin/blash COMMAND='ls -la' MSGFILE="my_temp_fic_1012380293476234" ADDRFILE="admins.txt" $COMMAND > $MSGFILE 2>&1 while read ADDR do mail -s "$COMMAND" $ADDR < $MSGFILE done < $ADDRFILE ---------------------------------- not perfect but it works (i didn't test it). --- Olivier Cortes free software admin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010719123110.C2150>