Mailinglist Archive: opensuse (1046 mails)

< Previous Next >
[opensuse] Trying to play sound from inside a cron job
  • From: "Carlos E. R." <carlos.e.r@xxxxxxxxxxxx>
  • Date: Sat, 12 Mar 2011 05:29:31 +0100 (CET)
  • Message-id: <alpine.LNX.2.00.1103120509510.9651@Telcontar.valinor>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



I have this test line in my user crontab:

* * * * * /usr/bin/play /tmp/time.wav

But I get this failure message (via mail) and no sound:

ALSA lib pcm_dmix.c:1010:(snd_pcm_dmix_open) unable to open slave
/usr/bin/play FAIL formats: can't open output file `default': snd_pcm_open
error: Device or resource busy


Needless to say, that same command line on the CLI works just fine.


- -- Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)

iEYEARECAAYFAk169rIACgkQtTMYHG2NR9XcpgCggBneNqldvBRWF+DMwexJeqEN
3RUAnRx2k/I61w/0XdRqmq53xdual3Dg
=NDQz
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >