Anyway, thanks for that, MrC. You put me on the right track. Here is
the corrected script:
testflacs.sh
Code:
--------------------
#!/bin/sh
szDate=`/bin/date`
szMusicRoot='/mnt/media/Music'
szErrFile="$szMusicRoot/flac_errors.txt"
echo Recursively testing flacs in $szMusicRoot
echo Flac decoding errors logged to $szErrFile
echo Flac test of $szMusicRoot started at $szDate >"$szErrFile"
echo Errors were found in the following flac files: >>"$szErrFile"
/bin/find "$szMusicRoot/" -name '*.flac' -type f -not -exec /usr/bin/flac -t
--totally-silent '{}' \; -and -print >>"$szErrFile"
szDate=`/bin/date`
echo Flac tests of $szMusicRoot compleated at $szDate >>"$szErrFile"
echo Done!
--------------------
--
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=60307
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix