Quote:
Originally Posted by Adoby
Changes to organize-ebooks.sh to throttle the script and delete empty folders, making it easier to find folders with skipped files...
Code:
ok_file() {
echo -e "${GREEN}OK${NC}:\\t${1}\\nTO:\\t${2}\\n"
echo Sleeping...
sleep 60
echo Awake...
rmdir -p --ignore-fail-on-non-empty "$(dirname "${1}")"
}
|
#!/bin/sh
dupseek -b kill .
move.files.sh
remove.dirs.sh
sanity.pl -l .
mkdir cache
for I in {a..z}* ; do mv -v $I cache ; cd cache ; ebook-reader-prep.sh ; mv -v * /home/sealbeater/ebooks/need.more.sorting/ ; cd .. ; done
Just to show a different way, you can achieve the same using OS tools. insert a "sleep 60m" after the "ebook-reader-prep.sh" which is just a wrapper that puts my books in a different place before being moved to my final library.