email when file exceeds limit

Schoolies

Senior member
Oct 9, 1999
495
0
76
Update.

Running RedHat 9.0

I would like to create a shell script that will notify me when a file has exceeded a certain limit. I actually want the script to check a couple of files and email me the results.

Anyone have ideas? I know how to send mail from the shell and I know how to find out the size of a file but I don't know how to put this together in a script. Still looking though.

Thanks!