View Single Post
Old 08-11-2018, 04:31 PM   #85
sealbeater
Banned
sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.
 
Posts: 666
Karma: 1752814
Join Date: Jan 2008
Device: Sony Reader PRS-505 : Onyx Boox Max : Sony PRS-900 : Onyx Kepler Pro
Quote:
Originally Posted by Adoby View Post
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.

Last edited by sealbeater; 08-11-2018 at 04:34 PM.
sealbeater is offline   Reply With Quote