LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Command Line .pls player (https://www.linuxquestions.org/questions/linux-software-2/command-line-pls-player-215391/)

chasingmytail 08-09-2004 11:04 AM

Command Line .pls player
 
I'm attemping to play streaming audio on a headless box. I've tried mp3blaster, to no avail, and mpg123 with this shell script:



====================================
#!/bin/bash

### a little script to help handle shoutcast pls files

if [ -n "$DISPLAY" ]; then
PLAYER=xmms
else
PLAYER=mpg123
fi

cat $1 | grep -e '^File1' | cut -f 2 -d = | xargs $PLAYER
====================================


This was designed to work as a 'plug-in' for web browsers, but doesn't help in the least for command line.

Does anyone have suggestions as to what players will use .pls files from the command line?

Komakino 08-09-2004 01:50 PM

I think mplayer will use a pls file as a playlist when given the -playlist argument.

chasingmytail 08-09-2004 09:32 PM

Quote:

Originally posted by Komakino
A quick English lesson:
1. blah blah blah
2. etc etc etc
3. yada yada yada

I must admit, I re-read my post about 5 times after seeing this sig on you're (haha) post.
This sig is informative but definately wins the "Making Others Self-Concious" Award. :D


All times are GMT -5. The time now is 02:44 PM.