shaggy999
November 27th, 2009, 01:49 AM
I'm trying to write a script to verify my flac files using the 'flac' command. I have tried several methods of "capturing" the output from the command to a text file and nothing is working. Here's what I've tried so far:
flac -t filename.flac | tee -a output.txt
flac -t filename.flac > output.txt
flac -t filename.flac >> output.txt
flac -c -t filename.flac | tee -a output.txt
flac -c -t filename.flac > output.txt
flac -c -t filename.flac >> output.txt
scriptname | tee -a output.txt
scriptname > output.txt
scriptname >> output.txt
In every single case I get a 0-byte output.txt file. Does anyone know how I can capture the output? This program seems to be doing something different. Here's the normal output of the 'flac' program:
flac 1.2.1, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
01 - Intro.flac: ok
flac -t filename.flac | tee -a output.txt
flac -t filename.flac > output.txt
flac -t filename.flac >> output.txt
flac -c -t filename.flac | tee -a output.txt
flac -c -t filename.flac > output.txt
flac -c -t filename.flac >> output.txt
scriptname | tee -a output.txt
scriptname > output.txt
scriptname >> output.txt
In every single case I get a 0-byte output.txt file. Does anyone know how I can capture the output? This program seems to be doing something different. Here's the normal output of the 'flac' program:
flac 1.2.1, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.
01 - Intro.flac: ok