Hello Ragnar,ragnar.jensen wrote:/tmp/no_rpg_data.$$ is a temporary file. $$ is substituted for the current process' ID, so the actual file name will be /tmp/no_rpg_data. with a number that is different for each run of the script appended. If the script detects that replaygain data is missing in a flac file, it prints its output to the temporary file instead of printing to the screen. Then, at the end of the script, it checks for the existence of the temporary file (meaning that we actually found flac files without replaygain data). If the temp file exists, the separator is printed, the temp file is dumped to the screen...Singtoh wrote: Question for you though?? Isn't there suppose to be a log going into the /tmp/no_rpg_data.$$ directory, or is that just a place where the script works its magic?? If I go watch the tmp directory as this is working I can see flashes of files popping up on screen but nothing ever goes into the /tmp/no_rpg_data.$$ directory(I probably fingered something up again)?? Just curious??
...and finally the temp file is removed.Code: Select all
[ -f "$GAIN_MISSING_FILE" ] && echo "========= ReplayGain Data Missing =========" && cat $GAIN_MISSING_FILEThis is to be able to defer output for those files with missing tags to the end of the log.Code: Select all
rm -f $GAIN_MISSING_FILEBy equal to -10, do you mean the truncated values (decimals removed) equals -10? I.e. "equals -10" means "is between -10.00 and -10.99".Singtoh wrote:As I said in my last post, it would be really really good to be able to tell the script an equal to command, say equal to -10dB and it puts to the log only those files that are at -10dB, nothing higher, nothing lower...
OK, will do.Singtoh wrote:Time for a beer![]()
--
Ragnar
"By equal to -10, do you mean the truncated values (decimals removed) equals -10? I.e. "equals -10" means "is between -10.00 and -10.99"."
Yes, that will work, decimals removed/truncated. I'm not sure if awk will find a 10.99 figure or 8.50 figure or any variable numer and put it to log unless it a whole number. I'm not the code guru like you
/home/patrick/keys/*.flac: ERROR: reading metadata, status = "FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE"
The FLAC file could not be opened. Most likely the file does not exist
or is not readable.
/home/patrick/keys/Carole King - The Collection/*.flac: ERROR: reading metadata, status = "FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE", this was taken from the very first line of the log.
And here is another snippet:
/home/patrick/ragnargainnewtest1.sh: 61: /home/patrick/ragnargainnewtest1.sh: /tmp/no_rpg_data.16010: not found
and that goes rite thru the log, it seems random
Ok, more beer
Cheers,
Singtoh