#!/bin/sh
#
# $Id: out-rmbsy.in,v 5.2 2004/11/23 00:50:39 anray Exp $
#
# Remove BSY files in outbound, older than 4 hours
#
# Needs GNU find!
#

OUT="/var/spool/ftn/out"

if [ $# == 0 ]; then
    find $OUT -follow -name '*.bsy' -mmin +240 -print -exec rm -f {} \; 2>/dev/null
elif [ $1 == "now" ]; then
    rm -f `find $OUT -follow -name *.bsy`
fi
