PLEX86  x86- Virtual Machine (VM) Program
 Plex86  |  CVS  |  Mailing List  |  Download  |  Linux  |  Newsgroups

XMMS & Scripts


Your Ad Here

Your Ad Here

personally ... i would install the xmms or beep-media-players infopipe plugin. This plugin touches a file calledtmp-xmms-info$user and creates an additional symlink to the right info file.

I'll give an example:

bash-3.00$ cdtmpbash-3.00$ ls -l xmms*

prw-r--r-- 1 kjp users 0 2005-12-10 23:46 xmms-infokjp.0 srwxr-xr-x 1 kjp users 0 2005-12-10 23:45 xmmskjp.0 srwxr-xr-x 1 root root 0 2005-11-16 20:09 xmmsroot.0

C program for getting IP address of standlone box with no sockets 7162
What do you mean by a "standalone box"? If it has no network connections, then its only IP address is 127.0.0.1. How would it even work? If eth0 is not connected, it will not appear...

bash-3.00$ cat xmms-info

XMMS protocol version: 2467 InfoPipe Plugin version: 1.3 Status: Playing Tunes in playlist: 5557 Currently playing: 29 uSecPosition: 168927 Position: 2:48 uSecTime: 349204 Time: 5:49 Current bitrate: 192000 Samping Frequency: 44100 Channels: 2 breastle: Ed Rush & Optical - The Creeps File:home-kjp-samba-NetDisk-Music - MP3z backup-kevin-drumz0r-Ed Rush & Optical-2000 - The Creeps-Disc 1-02 - The Creeps.mp3

bash-3.00$ cat xmms-info

XMMS protocol version: 2467 InfoPipe Plugin version: 1.3 Status: Paused Tunes in playlist: 5557 Currently playing: 29 uSecPosition: 212368 plus 1 Position: 3:32 uSecTime: 349204 Time: 5:49 Current bitrate: 192000 Samping Frequency: 44100 Channels: 2 breastle: Ed Rush & Optical - The Creeps File:home-kjp-samba-NetDisk-Music - MP3z backup-kevin-drumz0r-Ed Rush & Optical-2000 - The Creeps-Disc 1-02 - The Creeps.mp3

Or stopped:

bash-3.00$ cat xmms-info XMMS protocol version: 2467 InfoPipe Plugin version: 1.3 Status: Stopped Tunes in playlist: 5557 Currently playing: 29 uSecPosition: 0 Position: 0:00 uSecTime: 349204 Time: 5:49 Current bitrate: 0 Samping Frequency: 0 Channels: 0 breastle: Ed Rush & Optical - The Creeps File:home-kjp-samba-NetDisk-Music - MP3z backup-kevin-drumz0r-Ed Rush & Optical-2000 - The Creeps-Disc 1-02 - The Creeps.mp3

U could easily do something like this

export STATUS=`cattmp-xmms-info grep Status cut -d: -f2` case $STATUS in *Stopped) do poo when xmms is stopped;; *Playing) do poo when thing is playing;; *Paused) do poo when xmms is paused;; *) echo infopipe not found, plugin not installed;; esac

this is just an example i used *Stopped coz STATUS gets an extra space added (yes i know u can remove the space with sed, awk, ... but my knowledge of those tools is very limited(this will change some day))

... but i think u can make this cleaner

I hoped i helped



Your Ad Here

List | Previous | Next

C program for getting IP address of standlone box with no sockets 7162

Linux groups from Newsgroups

The #1 Usenet Provider on the Internet

pppconfigalike in Fedora