Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'A script to do tmp and log directory clean up' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to do tmp and log directory clean up
Authored by: joshewah on Sep 23, '04 10:05:59PM

There are been a few scripts I have seen posted like this that go and remove files. I was thinking maybe it would be a better idea to use the trash command instead of rm for security issues. You could even add a one like osascript to open the trash or something so that the user can confirm before deleting.

[ Reply to This | # ]
Authored by: joshewah on Sep 23, '04 10:09:14PM

I didn't notice that you set this as a weekly thing. If you are ok with the way it works I guess go at it. I was thinking it was to be run whenever space is low etc.

Guess there isn't a way to have things double checked but you could output a list of what is deleted or something to be mailed to an account on the machine for example.

[ Reply to This | # ]