PDA

View Full Version : help with simple script



bob58
11-26-2004, 03:28 AM
Hello....I need help with a simple script to play streaming audio from a site I like to listen to. I would like to:

1. bring up the Konsole
2. call up xmms
3. listen to this location: http://aud-one.kpfa.org:8090/kpfa.ogg

I know how to make a script that will bring up Konsole and then start xmms, but how do I enter code to start playing the above location? I can only get as far as bringing up xmms. I dont want to have to manually type in the URL, I want script to do it for me so then I can save the script on desktop for easy access. I have done this using MPLAYER cause it works in command line on my computer downstairs, so making the script was easy. But I want to be able to use xmms cause MPLAYER does not work on this laptop. so basically I want a script that will open media player, and play the location. Any help will be appreciated. Thank you....bob :o

firebyrd10
11-26-2004, 06:44 AM
Hello....I need help with a simple script to play streaming audio from a site I like to listen to. I would like to:

1. bring up the Konsole
2. call up xmms
3. listen to this location: http://aud-one.kpfa.org:8090/kpfa.ogg

I know how to make a script that will bring up Konsole and then start xmms, but how do I enter code to start playing the above location? I can only get as far as bringing up xmms. I dont want to have to manually type in the URL, I want script to do it for me so then I can save the script on desktop for easy access. I have done this using MPLAYER cause it works in command line on my computer downstairs, so making the script was easy. But I want to be able to use xmms cause MPLAYER does not work on this laptop. so basically I want a script that will open media player, and play the location. Any help will be appreciated. Thank you....bob :o

Try looking in the XMMS man pages.
Mabye there is someway to tell it to open a location by CLI.

shah
11-26-2004, 07:25 AM
#!/bin/sh
xmms http://aud-one.kpfa.org:8090/kpfa.ogg

You can either save directly onto your Desktop folder on you can save to any of your home folder and create a link on desktop.
Make sure the script set to executable.

*Good music *

:D :D