elsiegee40 Posted November 18, 2008 Posted November 18, 2008 (edited) Is it possible to delete the contents of the recycle bin of items that have been there for longer than N days (say 14)? Hoping a script guru could help? Ta! Edited November 18, 2008 by elsiegee40
featured_spectre Posted November 18, 2008 Posted November 18, 2008 I have a VBS script if you want that?
featured_spectre Posted November 18, 2008 Posted November 18, 2008 file is attached to this post... Double click it and it does the rest, but you have to do it manually as there is no physical way to get it to do it automatically that I know of, unless someone else is a guru of script! 1
elsiegee40 Posted November 18, 2008 Author Posted November 18, 2008 (edited) but you have to do it manually as there is no physical way to get it to do it automatically But I could use this as a logoff script? I don't need the number of days to be changeable, just to make sure that old material is dleeted and doesn't build up. Edited November 18, 2008 by elsiegee40
featured_spectre Posted November 18, 2008 Posted November 18, 2008 then yes, use it as a part of your log off / log on script.
elsiegee40 Posted November 18, 2008 Author Posted November 18, 2008 then yes, use it as a part of your log off / log on script. Great! Exactly what I needed!
Chuckster Posted November 25, 2008 Posted November 25, 2008 I used this script as a logoff but I get an error. Sorry, I know it's a vague, but that's what I get with everybody when they logoff. Have either of you guys experienced this?
elsiegee40 Posted November 25, 2008 Author Posted November 25, 2008 I used this script as a logoff but I get an error. Sorry, I know it's a vague, but that's what I get with everybody when they logoff. Have either of you guys experienced this? I haven't applied it yet... I'm waiting until we get rid of the kids on Dec 12th before I start messing about!
featured_spectre Posted November 25, 2008 Posted November 25, 2008 use it with the log on script. If you do it with the log off script then you will get errors as it is unable to run. I know that if you do it from log in it will kick in and remove everything from the recycle bin as the said person logs in.
CyberNerd Posted November 25, 2008 Posted November 25, 2008 Our recycle bins are held on the students network drive (a samba share) We run this through a weekly cron /usr/bin/find /home/DOMAIN/ -type d -name .recycle -exec rm -rf {} \;
networkingNut Posted March 8, 2010 Posted March 8, 2010 file is attached to this post... Double click it and it does the rest, but you have to do it manually as there is no physical way to get it to do it automatically that I know of, unless someone else is a guru of script! For some reason when running this as either a logon or logoff script as astudent I get a permission denied error on line 14 Any ideas? nN
sippo Posted June 25, 2010 Posted June 25, 2010 Sorry to bump an old thread, as it was linked I thought I would add my issue here. I also get permission denied even when added as a log-on or log off script. Any idea's?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now