[MPlayer-users] recording radio with cron
Stefan Sassenberg
stefan.sassenberg at gmx.de
Fri Jun 24 09:54:41 CEST 2005
Hi Kevin,
Kevin Sookocheff wrote:
> Hey everyone,
>
> I apologise if this topic has been covered before but I've searched through
> the archives and haven't hit pay-dirt yet. Anyways, I'm trying to schedule
> mplayer to record internet radio at a specific time using cron. The script
> I've written works wonderfully when I run it myself but when cron runs it
> nothing happens. Here is the script:
>
> #!/bin/bash
>
> # I've tried this with and without quotes
> stream="$1"
> outfile=$2
> length=$3
>
> mplayer -noconsolecontrols -dumpaudio -dumpfile ${outfile} ${stream}
> < /dev/null > /dev/null 2>&1 &
>
If you don't pipe the output to /dev/null but to /some/file you might
get error messages from /some/file.
For testing I recommend the command
$ at now
Regards
Stefan
More information about the MPlayer-users
mailing list