On 26-3-2013 5:07, Michael Dittmer wrote:
I had a request from my boss today wanting to know if it is possible to get an emailed list of the contents of each of the users directories on a daily basis.
I think a cron job listing the contents using a simple ls command might do in this case, something along the lines of:
ls -laR /path/to/folder | mail -s "Subject" [email protected]
Is there a contrib or script that someone has developed that would at say 4am in the morning automatically email a list of the contents of the user directories?
The timimg can then be done by making the script executable and putting the script in an entry in /etc/cron.daily/ or as a oneliner in /etc/crontab.
I know very little about Linux and even less about scripting (ex-Senior Systems Engineer now Network and Systems Manager for companies using Microsoft-based systems) hence asking the question.
Even though you dislike it the forum is the better place for it IMHO. Kind regards, Jonathan _______________________________________________ Discussion about project organisation and overall direction To unsubscribe, e-mail [email protected] Searchable archive at http://lists.contribs.org/mailman/public/discussion/
