I use brag to download binaries and it automatically fires off ydecode to decode them.
For instance, in my environment, I like to listen to Howard Stern commercial free. So I have a cron job that fires off at about 2:00pm each day with the following brag command--
Code:
brag -s news-server -g alt.binaries.howard-stern -a '*CF*'
These first two args should be self-explanatory. The -a is the 'accept' filter. I am looking for anything with CF in the subject. This is how users of that newsgroup identify that the attached binary is 'commercial free'.
If you want to run it from the command line without any output to your terminal, you can use this syntax--
Code:
brag -s news-server -g alt.binaries.howard-stern -a '*CF*' >> /dev/null &
In my environment, this command runs as root and it deposits the binaries in a subdir of /root/.brag/news-server/
So I have a cron job that follows up later in the day and moves the mp3 files to a web directory where I can access the files...
Code:
mv /root/.brag/news-server/alt.binaries.howard_stern/finished/*.mp3 /mnt/html/stern/
Periodically, you should clean out the contents of /root/.brag/news-server/alt.binaries.howard_stern/unfinished/ as the partial binaries downloaded to there can fill up your hard drive over time.
Here's where you can get brag --
http://brag.sourceforge.net/jindex.html
Hope this helps,
di11rod