On Fri, 2003-06-20 at 10:00, Simon Bryan wrote:
> Hi all,
> I am sure I have asked this on here before but could not find it in the archives, I
> need a script that I can run from cron that sends a pre-defined email to users whose
> names are contained in a file. This is a standard warning that they have exceeded
> their download quota and speed will be restricted until the end of the month.
>
#!/bin/sh
for USER in `cat userlist-file`
do
cat warning-file | mailx -s "Subject" $USER
done
Should work, but try it before you go live :-)
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug