Sam, That did it. Thank you so much!!! Damien ----- Original Message ---- From: Sam Martin <s.earl.martin at gmail.com> To: tclug-list at mn-linux.org Sent: Tuesday, June 6, 2006 7:41:03 PM Subject: Re: [tclug-list] X-less streaming client (I may or may not have botched my original attempt to send this... If I ended up sending duplicates, I apologize) > 1. Anyone successfully scripted automatically firing up a live 365 stream using command line tools and if so, any tips? A little trial and error, combined with firefox and ethereal, led to the following *ugly* one-liner. Substitute your username, password, and the stationid you care about, and you *should* soon hear streaming music... $ mplayer `wget -q --save-cookies=cookies.txt --keep-session-cookies --post-data="membername=username&password=password" http://www.live365.com/cgi-bin/login.cgi && wget -q --load-cookies cookies.txt --output-document=play.pls http://www.live365.com/cgi-bin/play.pls?stationid=297252 && sed -n '/^File1/p' < play.pls | sed 's/^File1=//'` HTH, sm _______________________________________________ TCLUG Mailing List - Minneapolis/St. Paul, Minnesota tclug-list at mn-linux.org http://mailman.mn-linux.org/mailman/listinfo/tclug-list >Damien DeZurik wrote: > >>Hi, >> >>I am looking for a command line streaming client that can hook up to a live365 mp3 audio stream. The client will be on a system that is not running X. Cookies need to be set on a login page before the stream will start. I tried using wget to hit that login page and force a post of the uname/passwd and I got it to successfully log in and, more importantly, set those cookies. I found I can then use mplayer to hook directly to the stream URL and read cookies from the same cookie file that wget had generated. It is not working as I had hoped; when the audio starts I get a recorded message in place of the stream saying, "you must first log in...". It is possible that a session is broken when I switch from wget to mplayer. So I have a couple of questions if anyone has any advice. >> >>1. Anyone successfully scripted automatically firing up a live 365 stream using command line tools and if so, any tips? >> >>2. Does anyone know of any other command line, no GUI required, streaming clients at all regardless of if you think they will work in this scenario? >> >>Thanks!! >> >>Damien >> >> >> >>_______________________________________________ >>TCLUG Mailing List - Minneapolis/St. Paul, Minnesota >>tclug-list at mn-linux.org >>http://mailman.mn-linux.org/mailman/listinfo/tclug-list