| PLEX86 | ||
|
Replay Radio replacement in LinuxMihai Osian That only works for MP3 streams, unfortunately. and the Proc::Background module from CPAN (do "man cpan" from the command line) are required. If anyone improves on it, please post it back here. Obvious improvements are making the program configurable on the command line, allowing it to support direct urls to streams rather than urls of playlists, and making the date format flexible. Sample invocation is from your crontab is: 59 21 * * 6usr-local-bin-recorder ThisAmericanLife to record "This American Life". Both mplayer and lame repeatedly print get mailed to you. Script (Make sure no lines in the script have been broken into multiple lines): #!-usr-bin-perl use Proc::Background qw(timeoutsystem); $OUTPUTDIRECTORY = '-tmp'; $MPLAYERPATH = '-usr-local-bin-mplayer'; $LAMEPATH = '-usr-local-bin-lame';
chop $OUTPUTDIRECTORY if $OUTPUTDIRECTORY =~ m!-$!; ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); $showstring = sprintf("%s%04d-%02d-%02d", $show, $year + 1900, $mon + 1, $mday); timeoutsystem($duration, "$MPLAYERPATH -playlist $playlist -ao pcm:file=$OUTPUTDIRECTORY-$showstring.wav -vc null -vo null"); newbie question about hard drives and spoke the following words to the mbuttes incomp.os.linux.misc...: The first thing you need to do is create mountpoints for the parbreastions on the newly... `$LAMEPATH -b 64 $OUTPUTDIRECTORY-$showstring.wav $OUTPUTDIRECTORY-$showstring.mp3 && rm $OUTPUTDIRECTORY-$showstring.wav`;
|
||||
newbie question about hard drives Linux groups from Newsgroups The #1 Usenet Provider on the Internet
|
||||