[MPlayer-users] backgrounded mplayer in cron job

Joey Parrish joey.parrish at gmail.com
Fri Jun 29 02:13:50 CEST 2007


On 6/28/07, Vitezslav Kotrla <vitko at post.cz> wrote:
> I can't get mplayer running in cron job; my idea was to use something
> like
>
>    mplayer _record_some_stream_ &
>    sleep 5m
>    kill $!
>
> I've noticed mplayer hasn't run in cronned job, even if my test script
> was ok when called from console.

Try this:

mplayer _record_some_stream_ &> /tmp/mplayer.log &
sleep 5m
kill $!

Then check /tmp/mplayer.log to see what the problem was.  If you need
help after that, you'll be able to attach the log file so that we can
try to figure out your problem.

--Joey



More information about the MPlayer-users mailing list