fcrontab playing wakeup sounds

J.A. Neitzel jan.listbox at belvento.org
Sat Oct 6 20:49:00 PDT 2001


deXter Rutecki wrote:
<snip />
>>>and this is from the log when it runs (testing with another time)
>>>
>>>Oct  7 04:25:00 fysgr405 fcron[18390]: Job esdplay
>>>/usr/local/share/licq/sounds/Monty-Python.wav started for user deXter
>>>(pid 18391)
>>>Oct  7 04:25:00 fysgr405 fcron[18390]: Job esdplay
>>>/usr/local/share/licq/sounds/Monty-Python.wav terminated (exit status: 127)

>> it may mean it wants a terminal to run on which cron may not be providing
>> properly. You could try the 'play' program from the 'sox' package. I've
>> used it before in this setting, alongside mpg123 with success.

> I tried mpg123 as well
> 
> 10 5 * * * mpg123 /home/deXter/music/Adam_Sandler_-_Medium_Pace.mp3
> 
> with the same results
> 
> Oct  7 05:10:00 fysgr405 fcron[18436]: Job mpg123
> /home/deXter/music/Adam_Sandler_-_Medium_Pace.mp3 started for user root
> (pid 18437)
> Oct  7 05:10:00 fysgr405 fcron[18436]: Job mpg123
> /home/deXter/music/Adam_Sandler_-_Medium_Pace.mp3 terminated (exit
> status: 127)
> 
> ..they work just fine from the commandline
> 
> Something with my fcron setup?

Kind of...
What directory do you keep these sound-playing programs in? Is it by
any chance, /usr/local/bin ??? Well, wherever they are... You want to
make sure that this path is available to fcron via your fcrontab. I
think you just put a "PATH=whatever you want it to be" up top in the
fcrontab.

You can also simply replace "mpg123" with "/path/to/mpg123". This will
achieve the same goal. All of this is somewhere in the man pages for
fcron IIRC.
-- 
Jeff

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list