On Thu, 2003-06-26 at 18:21, Ed Wilts wrote: > On Thu, Jun 26, 2003 at 06:02:33PM -0500, Bret Hughes wrote: > > Ah well. Life sure would be easy if there weren't all these pesky > > customers complicating things. > > Yeah, but they do pay the bills... > > > Do these files stay in the upload dir indefinitely or are they moved > > pretty quick? > > It varies from account from account. Some users have 5-minute cronjobs > that automatically move the file to an internal server (which I could > modify so that the file gets scanned first), and some sit there for days > until there's manual intervention. A few users have scripts running on > internal servers that poll the FTP server every so often (one user who's > not in my good books is polling every 10 seconds!). > > I just hate the idea of rescanning files that have > > already be scanned. Not sure if fprot and the like can track which > > files in a dir have been scanned or not. > > It's an ugly problem which is why I posted for more ideas. It would be > nice if there was a hook right into wu-ftpd that did the scan during the > upload so it only gets scanned once and can't be missed either. > > --
Yep I think after noodling this for a while I would write a script to create a list of files and if there are new ones found from the last execution run something like f-prot against them. I have been testing f-prot on my mail server and it seems to work well. not too expensive for the license that includes a year of updates. I got started on a script since it seemed a good exercise and here it is untested as far as passing to the f-prot progs: should come close. #!/bin/bash DIRS='/home/bhughes/xfskins /home/bhughes/vpn' NEWLIST="/tmp/newlist" OLDLIST="/tmp/oldlist" SCANNER='/usr/local/bin/f-prot if [ -f "$NEWLIST" ]; then rm -f "$NEWLIST" fi for DIR in $DIRS; do echo processing $DIR|tee >>"$NEWLIST" pwd find $DIR -type f |xargs -r -n 50 ls -lQ >>"$NEWLIST" done if [ -f $OLDLIST ] ; then diff $OLDLIST $NEWLIST | awk '/^>/ {print $10}'|xargs $SCANNER fi cp $NEWLIST $OLDLIST Bret -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list