I need a script that will do the following:
Execute at a specific time each day. The first time it should search all the directorys of the "real" users from /etc/passwd (real=with home directory & valid shell) and that have been connected for more than three minutes. For each user, I need a list of the files larger than 10Mb, and move these files to /var/files/username. An email should be sent to each user to advise them that the files have been moved. After the first run, the script should just look at the files of each user from that day.
Thanks for any assistance!