-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2011-03-13 at 20:00 -0300, Cristian Rodríguez wrote:
I added a verification for file existence, that's all.
No, :-P you need to check the return value of mktemp and not if the file exists, mktemp blabla || exit 1... see http://en.wikipedia.org/wiki/Time-of-check-to-time-of-use
TEMPORAL=`mktemp /tmp/decir.wav.XXXXXXXXXXXXX` ERROR=$? case $ERROR in 0) ;; *) echo "Error $ERROR in mktemp" exit ;; esac I didn't find the error values of mktemp - in old times I did translations of values to error strings. Clients hate seeing error codes. - -- Cheers, Carlos E. R. (from 11.2 x86_64 "Emerald" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) iEYEARECAAYFAk2AFy0ACgkQtTMYHG2NR9UiFQCfVx6Mb/i2U8cifyaB7OkVTM+9 weUAn0/tLIWgJ+PrDxyFJ3gbtkuJaFLE =GUb1 -----END PGP SIGNATURE-----