Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Skip the /tmp' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Skip the /tmp
Authored by: darrinsmart on Sep 30, '04 03:06:42PM

I'm sure you could do this all on one line:

#!/bin/csh
strings $1 | say -v Vicki -o /dev/stdout | lame --quiet - $1:r.mp3

No need to worry about any temporary files, and the three
tasks will operate in parallel, making it all a bit faster.



[ Reply to This | # ]
Skip the /tmp
Authored by: st on Sep 30, '04 05:31:59PM

No, as far as I know, lame only accepts raw PCM as streaming input. Lame needs file-seek access with input in aiff format, which, consequently, cannot be piped in.

I agree with other comments that temporary files should be created exclusively by using mktemp.



[ Reply to This | # ]