On Wed, 2011-06-08 at 09:35 +0200, Per Jessen wrote:
Gary Hodder wrote:
On Wed, 2011-06-08 at 08:49 +0200, Per Jessen wrote:
Gary Hodder wrote:
Hi all,
can somebody help me with a script using mp3info that will only print out number of files in a directory and number of files with a bit rate of less than 192k. I look after a community radio station and a presenter is modifying the station music collection, I need to catch this guy in the act. I want to run this script from cron before and after his show and send it to a smb printer in the office.
Hi Gary,
would it suffice to look at the most recently changed files? That could be easily done with find, and you could have the results emailed.
/Per
Hi Per,
He is also changing the name, date and time stamp to the same as the original.
Okay - how about using md5sum to create checksums then? Those are easily done too, and the check is also simply done by running md5sum again.
Ok md5sum works well but doesnt catch all. find ./ -type f -print0 | xargs -0 md5sum >> /file.md5 Then to check md5sum -c --quiet /file.md5 This worked fine no failed files. There are text files for each mp3 that holds fade times etc, so removed a carriage return at the end of one file. That file failed checksum on next scan. Replaced the carriage return rescanned and all was ok. So with md5sum a file can be modified then put back to the original state before the next scan and md5sum wont pick that up. Thanks Gary. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org