Re: Auto-emptying of trash.

2014-06-09 Thread Tom H
On Sun, Jun 8, 2014 at 4:03 AM, Sharon Kimble wrote: > > Revisiting a question that I asked in March last year about how to > auto-empty a trash bin. > > This has worked very well until today, when on one of my drives it > also deleted the trash bin as well, so my follow-on script to give > me the

Re: Auto-emptying of trash.

2014-06-08 Thread Paul Johnson
On Jun 8, 2014 3:11 AM, "Sharon Kimble" wrote: > > Revisiting a question that I asked in March last year about how to > auto-empty a trash bin. > > This has worked very well until today, when on one of my drives it > also deleted the trash bin as well, so my follow-on script to give > me the size

Re: Auto-emptying of trash.

2014-06-08 Thread Andrew McGlashan
On 8/06/2014 6:03 PM, Sharon Kimble wrote: > Revisiting a question that I asked in March last year about how to > auto-empty a trash bin. > > This has worked very well until today, when on one of my drives it > also deleted the trash bin as well, so my follow-on script to give > me the size of my

Re: Auto-emptying of trash.

2014-06-08 Thread Slavko
Ahoj, Dňa Sun, 08 Jun 2014 09:03:48 +0100 Sharon Kimble napísal: > Revisiting a question that I asked in March last year about how to > auto-empty a trash bin. > I am created this for cca 2 years (sorry, comments in my language). It takes mount points for block devices, check the Trash-* dirs

Re: Auto-emptying of trash.

2014-06-08 Thread Filip
Sharon Kimble writes: > Revisiting a question that I asked in March last year about how to > auto-empty a trash bin. > > This has worked very well until today, when on one of my drives it > also deleted the trash bin as well, so my follow-on script to give > me the size of my trash bin failed as

Re: Auto-emptying of trash.

2014-06-08 Thread Ralf Mardorf
On Sun, 2014-06-08 at 10:44 +0200, Ralf Mardorf wrote: > On Sun, 2014-06-08 at 10:40 +0200, Ralf Mardorf wrote: > > That's strange, since "rmdir --ignore-fail-on-non-empty" seemingly > > shouldn't remove the directory. I wasn't aware about this, so I tested > > it, resp. compared it to "rm -r" [1].

Re: Auto-emptying of trash.

2014-06-08 Thread Ralf Mardorf
On Sun, 2014-06-08 at 10:40 +0200, Ralf Mardorf wrote: > That's strange, since "rmdir --ignore-fail-on-non-empty" seemingly > shouldn't remove the directory. I wasn't aware about this, so I tested > it, resp. compared it to "rm -r" [1]. > > Perhaps you should post the complete script, the culprit

Re: Auto-emptying of trash.

2014-06-08 Thread Ralf Mardorf
That's strange, since "rmdir --ignore-fail-on-non-empty" seemingly shouldn't remove the directory. I wasn't aware about this, so I tested it, resp. compared it to "rm -r" [1]. Perhaps you should post the complete script, the culprit seems not to be "rmdir". [1] [rocketmouse@archlinux ~]$ touch ~/

Auto-emptying of trash.

2014-06-08 Thread Sharon Kimble
Revisiting a question that I asked in March last year about how to auto-empty a trash bin. This has worked very well until today, when on one of my drives it also deleted the trash bin as well, so my follow-on script to give me the size of my trash bin failed as there wasn’t a trash bin to evaluat

Re: Auto-emptying of trash.

2013-03-04 Thread Slavko
Dňa 03.03.2013 23:04 Sharon Kimble wrote / napísal(a): > I'm trying to get a bash script working from a cron job that will empty > trash of all files and directories that are older than $N [7 days in > this case]. This partly works but is very inefficient in that it > doesn't delete everything tha

Re: Auto-emptying of trash.

2013-03-04 Thread Sergey Spiridonov
Hello Sharon On 03/03/2013 11:04 PM, Sharon Kimble wrote: I'm trying to get a bash script working from a cron job that will empty trash of all files and directories that are older than $N [7 days in this case]. May be it is not what you need, but I look at package tmpreaper. -- Best regards,

Re: Auto-emptying of trash.

2013-03-03 Thread Alois Mahdal
Hello Sharon, bob and everyone! On Mon, 4 Mar 2013 02:29:09 + Sharon Kimble wrote: > [...] > 'atime' is not installed as its not in the wheezy repos, and > when i want to install it apt-get comes back at me saying "E: > Unable to locate package atime" That is expected. atime is not a packa

Re: Auto-emptying of trash.

2013-03-03 Thread Sharon Kimble
I'm using 'Dolphin' from KDE as my file manager, that's the only GUI'ness in usage in this situation! :) The 'emptytrash' script is called at 1300 each day from cron, giving plenty of time to leave stuff in the waste bin for future retrieval. 'atime' is not installed as its not in the wheezy rep

Re: Auto-emptying of trash.

2013-03-03 Thread Bob Proulx
Sharon Kimble wrote: > Thanks, after repopulating .trash with files suitable for deleting, i was > able to test it out. And' find $HOME/.local/share/Trash -type f -mtime > +7' did find one file, which i was then able to delete by running the same > command again with '-delete' at the end. Yay!

Re: Auto-emptying of trash.

2013-03-03 Thread Sharon Kimble
Thanks, after repopulating .trash with files suitable for deleting, i was able to test it out. And' find $HOME/.local/share/Trash -type f -mtime +7' did find one file, which i was then able to delete by running the same command again with '-delete' at the end. I now see in .trash that there ar

Re: Auto-emptying of trash.

2013-03-03 Thread Bob Proulx
Sharon Kimble wrote: > Thanks for this, and I've tried it out but its still not deleting files, as > I output it to a txt.file which still remain empty. Please say more. It works for me. You say it isn't deleting files for you. It is possible the permissions will prevent you from deleting files

Re: Auto-emptying of trash.

2013-03-03 Thread Sharon Kimble
I've done some googling, and got it to work using this line 'rm -rf /home/YOURUSERNAME/.local/share/Trash/files/*' but this just blanket-empties the trash can without any care for retaining 7 days worth of files. Sharon. On 3 March 2013 23:27, Sharon Kimble wrote: > Thanks for this, and I've t

Re: Auto-emptying of trash.

2013-03-03 Thread Sharon Kimble
Thanks for this, and I've tried it out but its still not deleting files, as I output it to a txt.file which still remain empty. There is a programme, ported from ubuntu, called 'autotrash' in the repos. And although I've set it up as per its man page, but its output remains at zero, and not workin

Re: Auto-emptying of trash.

2013-03-03 Thread Bob Proulx
Sharon Kimble wrote: > I'm trying to get a bash script working from a cron job that will empty > trash of all files and directories that are older than $N [7 days in > this case]. This partly works but is very inefficient in that it > doesn't delete everything that is available to be deleted, just

Auto-emptying of trash.

2013-03-03 Thread Sharon Kimble
I'm trying to get a bash script working from a cron job that will empty trash of all files and directories that are older than $N [7 days in this case]. This partly works but is very inefficient in that it doesn't delete everything that is available to be deleted, just tends to leave stuff with no