El 12/03/11 18:56, Carlos E. R. escribió:
and the script now does (no error checking):
...
hora) TEMPORAL=`mktemp /tmp/hora.XXXXXXXXXXXXX` #echo $TEMPORAL LANG=es_ES.ISO-8859-1 LC_ALL=es_ES.ISO-8859-1 /bin/date +"Es %e de %B, y son las %k horas y %-M minutos " | espeak -v es --stdin -a 20 -w $TEMPORAL #play -q $TEMPORAL ALSA_CONFIG_PATH=/etc/alsa-pulse.conf SDL_AUDIODRIVER=pulse /usr/bin/aplay -q $TEMPORAL rm $TEMPORAL
A clock that talks :-)
All right, that's much better , if you add some proper error checking, there is a cookie waiting for you ;-P Just remember, whatever named file/directory you want to open/create/read/write/delete from /tmp or other volatile place must be created 99% of the time with mktemp or the equivalent in your favorite language, otherwise, you are doing it _wrong_ and $deity will kill a kitten ;-) See ya.. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org