I have a downloader running (in perl) that tries to execute a mv system command.
The output from the mv
mv: cannot move `./PMC5318673/EXCLI-15-758.pdf' to `/directory/EXCLI-15-758.pdf': No space left on device
There is space on the drive but I believe that this folder has used up all it's inodes.
so the solution that we came up with is to delete the oldest file in the directory and attempt to move the file there, and if there is still no space to do the mv delete the next oldest file.
I need a system command that is quick to run. (ls takes forever, since there's probably millions of files or more ??) that can delete the oldest file. As well it seems like that the files might be in sub-folders sometimes.
As well, If you can think of a different idea than deleting the oldest files please let me know.