View Single Post
Old 06-20-2017, 06:30 AM   #3
masteranza
Member
masteranza began at the beginning.
 
masteranza's Avatar
 
Posts: 21
Karma: 10
Join Date: Jul 2016
Device: PW2
Thanks knc1!
I've followed your advise and here's a script I've managed to create I hope some of you might be able to help me optimize it:

showlog | grep "ExtractorBridge:EXTRACTION_ELAPSED_TIME" | awk -v FS="(P ExtractorBridge:EXTRACTION_ELAPSED_TIMEath=/mnt/us/documents/|.azw,type=add)" '{print $2}' | while read line; do mv "/mnt/us/documents/$line.azw" "/mnt/us/documents/Articles/$line.azw" 2>/dev/null; mv "/mnt/us/documents/$line.sdr" "/mnt/us/documents/Articles/$line.sdr" 2>/dev/null; done
/mnt/us/extensions/librariansync/generate_collections.py --folders

What I'm planning is to run it in background every 10 seconds - is this a good idea?

For now I'm running this script inside my "housekeeping" script that moves files from my computer to my kindle and that creates collections based on the directories.

Last edited by masteranza; 06-20-2017 at 07:11 AM.
masteranza is offline   Reply With Quote