[MPlayer-users] Mplayer and cron

The Wanderer inverseparadox at comcast.net
Tue May 18 21:00:59 CEST 2004


Bill Moseley wrote:

> I want to capture a few minutes of a stream using cron.  I'm
> wondering what the best method is.

> I though about doing this in cron, but I can't seem to get it to
> work:
> 
> mplayer [...] & sleep 1h; killall mplayer
> 
> mplayer doesn't seem to work in the background, although I can ^Z and
> then run in the background (bg).

AFAIK from previous discussion, this is because mplayer reads stdin for
command input and can't proceed until it gets either something or
nothing. If you redirect stdin from /dev/null it should IIRC work fine.

-- 
       The Wanderer

Warning: Simply because I argue an issue does not mean I agree with any
side of it.

A government exists to serve its citizens, not to control them.




More information about the MPlayer-users mailing list