[MPlayer-users] backgrounded mplayer in cron job

Vitezslav Kotrla vitko at post.cz
Fri Jun 29 23:02:16 CEST 2007


Joey Parrish píše v Pá 29. 06. 2007 v 02:13 +0200:

> 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.

Stupid me, I should have done the output logging in the first place

   $ cat /tmp/mplayer.log 
   ~/record_radio: line 5: mplayer: command not found

I've got SVN mplayer in /usr/local/bin; supplying full path when calling
mplayer binary solves the problem.

Thank you very much for a brief moment of enlightement :-)

Vit




More information about the MPlayer-users mailing list