Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script to notify users of large file that are about ot be deleted

Status
Not open for further replies.

blues77

Programmer
Jun 11, 2002
230
CA
Hello,

I am hoping someone can help me write a script that should check the entire filesystem from root for any files that are over 100 MB in size and sends a warning message to the owners of these files. Also would like to know how I could write a script that would give a user "Hello" message everytime they log in.

Any and all help is appreciated!
Mike
 
1) man find
man ls
man mail
2) man yourshell (the profile section)
man echo

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Would the 'Hello' message be the same for all users? If so, that's what /etc/motd is for. If not, as PHV say's you can include a degree of personalisation into the .profile. Something like echo "Hello "$LOGNAME". Now get on with some work!" might be an option!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top