Subject: irssi script
To: None <netbsd-users@netbsd.org>
From: Pavel Trubl <trubl@katel.cz>
List: netbsd-users
Date: 01/13/2004 14:52:40
Hello,
I try irssi script, but it doesn't work:
http://www.irssi.org/scripts/html/listen.pl.html
Problem is in lsof command, it has nope output:
...
# most of the players put the file into the memory at first,
# let's try to catch it there, first
getmp3filename("/usr/sbin/lsof -d mem | grep -i .mp3|");
# if we didn't find anything there, we check the fds for mp3s
if ($mp3player eq "nope") {
getmp3filename("/usr/sbin/lsof -d 1-15 | grep -i .mp3|");
}
# hmm are we listening to anything?
if ($mp3player eq "nope") {
Irssi::print("Hmm are you listening to anything? (possibly not supported
mp3player)");
return 0;
}
...
NetBSD 1.6.1, xmms and irssi from pkgsrc-current.
Thanx.
P.Trubl