Delete Files By Schedule Continued
Hello all again,
I have run into some issues with my script and now require to change my strategy with the linked situation. I'm hoping someone will be able to assist?
Please refer to the forum post for details:
Basically the above works fine in itself. However now we will require the ability to skip some directories.
Ideally it would be nice to be able to first generate a list of all the directories. All the directories would be kept in a MySQL database (for other reasons) this could be done with a SQL query I'm sure. In the SQL database we will have a field that says delete or not delete basically. Is there someway we can then adapt this to work in the same way and delete files on a schedule excluding "not delete"?
Is it possible to have RM or FIND read from a text file?
I am thinking it would be ideal to issue a SQL query to export all entries with "DELETE" and then have RM read from the exported txt file. (if possible?)
Does anyone have any idea how I can do this effectively?
Thanks so much!
Last edited by plexter; 25th June 2008 at 05:13 PM.
|Thread||Thread Starter||Forum||Replies||Last Post|
|FreeBSD console delete key||graudeejs||FreeBSD General||4||24th August 2008 01:37 PM|
|Cannot delete it....||graudeejs||FreeBSD General||9||20th July 2008 12:45 PM|
|Delete Files By Schedule||plexter||OpenBSD General||12||4th June 2008 10:15 PM|
|How to delete account?||khdf||Feedback and Suggestions||5||9th May 2008 09:05 PM|