The file is OK now.
I thought about this. The problem arises because I am running 5 grabs at the same time. (5 different packages are grabbing at the same time). Now they do not take always the same time to grab. There is variation and I do not know when the grabs are finished. So at a certain time I start compiling the final files and this can thus overlap.
This whole thing is run on a Linux PC, and the flow is controlled with a bash script.
I have added the following, before the final file compilation:
while [ $Answer -gt 0 ] ; do
Answer=$(ps x |grep -v grep |grep -c "/home/EPG/FetchEPG")
sleep 300
done
This will pause the script while there is still some grabbing going on (or a grab is still active).
Problem is when a grab is stuck, the loop will run for ever and no final files are produced. (But a stucked grab is always a problem)
Will however try this, and see if it creates problems.
Willy
Edited by doglover, 11 January 2017 - 15:42.
~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)
Synology NAS
Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*