The450Man 0 Posted November 22, 2011 Report Share Posted November 22, 2011 I have a folder that is constantly increasing in size (temp). I cant delete the temp files all at once as some are still needed and this causes ubot to crash. CCleaner is stuck at 24 hours so that isnt an option. I need something that i can run frequently and deletes files older than a specific amount of time. Right now i just delete them once a day BUT that means all instances of ubot must not be running, giving me down time. Quote Link to post Share on other sites
JohnB 255 Posted November 22, 2011 Report Share Posted November 22, 2011 Have you tried moving them to a new folder after they are used (or for that matter, deleting them right after they are used)? John Quote Link to post Share on other sites
The450Man 0 Posted November 22, 2011 Author Report Share Posted November 22, 2011 Have you tried moving them to a new folder after they are used (or for that matter, deleting them right after they are used)? John so you can delete them using ubot? Quote Link to post Share on other sites
JohnB 255 Posted November 22, 2011 Report Share Posted November 22, 2011 yes, you can...$delete file Quote Link to post Share on other sites
The450Man 0 Posted November 23, 2011 Author Report Share Posted November 23, 2011 yes, you can...$delete file yes but ubot creates unique folders and files so i cant use a static command to delete the ones no longer used. Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted November 23, 2011 Report Share Posted November 23, 2011 I actually use add list to list$get files then loop the delete file option. Fast as hell might i add. Quote Link to post Share on other sites
JohnB 255 Posted November 23, 2011 Report Share Posted November 23, 2011 Right...at the moment you create the unique name, save it to a list or, like TJ said use the get files command to list all the files and delete them that way. John Quote Link to post Share on other sites
The450Man 0 Posted November 26, 2011 Author Report Share Posted November 26, 2011 Right...at the moment you create the unique name, save it to a list or, like TJ said use the get files command to list all the files and delete them that way. John ubot automatically creates the temp file folder and does not removed it. Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted November 26, 2011 Report Share Posted November 26, 2011 If you are having Ubot create the folder, have Ubot delete the folder, or the contents of the folder. Quote Link to post Share on other sites
firionicable 0 Posted November 27, 2011 Report Share Posted November 27, 2011 Does it mean that you will have to create a folder then it will transfer the files that needs to be deleted on that folder for you to delete? Is that the whole process? Quote Link to post Share on other sites
The450Man 0 Posted November 27, 2011 Author Report Share Posted November 27, 2011 maybe my description was not clear. i am runing multiple instances of ubot 24/7. this means i CANT delete the temporary files that may be needed in the future (each bot has 10 loops). In order to overcome this, i have to delete them if they are older than 60 minutes. I could probably get away with something that deletes if they are older than 6 hours. I dont have control over what ubot saves as a temporary file nor can i tell what is saved; therefore i cant really code up anything and must use a dynamic script external of ubot. Quote Link to post Share on other sites
Wolfman 0 Posted November 29, 2011 Report Share Posted November 29, 2011 if you can save the temp files to separate directories, maybe you could do something like call the $date function and parse out the current hour, then save the temp files to a directory named by that hour. then once in a while run a subroutine to figure out what the previous hour (or two hours ago) was, and delete the contents of that directory. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.