[plug] vsFTPd
Mr Robot
gateway at westnet.com.au
Tue Sep 14 22:59:21 WST 2004
thanks will check it out.
right now i'm trying this one out
################################################################################
####### FTP script ...
##########
###############################################################################
cd /home
ls > /root/first.bkp
i=$(wc -w first.bkp)
#number of files in /var/ftp/pub
j=$(echo $i | cut -d" " -f1)
#waiting 5 minutes ...
sleep 300
x=$(ls /home | wc -w | cut -d " " -f6)
if [ $j -eq $x ]
then
echo "No news files"
fi
if [ $x -ge $j ]
then
echo "you've got new files"
mail -s new files user at mydomain.com < /root/first.bkp
fi
I added the cron in , got an error at first, ( wrong path ) just waiting for
the 2nd one now
TT
----- Original Message -----
From: "Leon Brooks" <leon at brooks.fdns.net>
To: <plug at plug.linux.org.au>
Sent: Tuesday, September 14, 2004 10:50 PM
Subject: Re: [plug] vsFTPd
> On Tue, 14 Sep 2004 22:30, Mr Robot wrote:
>> Is it possable to send a email to an address when a user logs in via
>> FTP ? Or it is possible to create a cronjob to send mail when ever a
>> user logs into their FTP account
>
> You want a log-watcher program, maybe like this one:
>
> http://www.oit.ucsb.edu/~eta/swatch/
>
> Cheers; Leon
>
>> ---
>> Outgoing mail is certified Virus Free.
>> Checked by AVG anti-virus system (http://www.grisoft.com).
>> Version: 6.0.760 / Virus Database: 509 - Release Date: 10/09/2004
>
> My mail is actually checked by ClamAV, but for some reason it never
> pings off. Could be something to do with avoiding all Microsoft
> software on the client.
>
> Cheers; Leon
> _______________________________________________
> PLUG discussion list: plug at plug.linux.org.au
> http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
> Committee e-mail: committee at plug.linux.org.au
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.760 / Virus Database: 509 - Release Date: 10/09/2004
More information about the plug
mailing list