From: Ezra Zygmuntowicz Date: 2005-07-15T08:21:42+09:00 Subject: Re: Ruby can call external shell commands, right? Preston- Yes you can do that a few different ways: with backticks: `mplayer myfile.mp3` or system: system("mplayer myfile.mp3") or %x: %x{ mplayer myfile.mp3 } HTH -Ezra On Jul 14, 2005, at 4:05 PM, Preston Crawford wrote: > I'm trying to use it to scrape the URL for one of my favorite radio > shows (All Things Considered) since it isn't available to me in > portable > format on Linux. I'd like to scrape the URL, parse the XML and as I > navigate the tree make external calls to mplayer, etc. Should this be > theoretically possible? Never done this with Ruby before. > > Preston > -Ezra Zygmuntowicz Yakima Herald-Republic WebMaster 509-577-7732 ezra@yakima-herald.com