-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2011-03-12 at 16:45 -0300, Cristian Rodríguez wrote:
El 12/03/11 14:06, Carlos E. R. escribió:
/tmp is writable by any user, someone, somehow can manage to exploit the player to do nasty things, whatever the file your read from there must be created by mktemp utiliity or similar.
No one here, but ok, I'll learn new tricks. I have this crontab: - -0,30 * * * * /home/cer/bin/avisar_hablando hora > /dev/null 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 :-) (Spanish with English accent...)
Thanks!
Cool, glad the vague hint worked ;-)
Yep, I was thinking of more complicated things, bugs, upgrades and such. An environment var is so much easier ;-) - -- Cheers, Carlos E. R. (from 11.2 x86_64 "Emerald" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) iEYEARECAAYFAk177CIACgkQtTMYHG2NR9XkJQCaA9hNW1HIuEBT7E5FKDNGCX1Z 3KAAn3sbNBAHftAv4cXtHpBVP3VPuqle =VS/Y -----END PGP SIGNATURE-----