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_TIME

ath=/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.