Subject: Re: irssi script
To: None <netbsd-users@netbsd.org>
From: Pavel Trubl <trubl@katel.cz>
List: netbsd-users
Date: 01/16/2004 17:25:13
 >> # 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|");
 >                  ^^^^^^^^^^^^^^
 >do you have lsof installed?  are you sure your lsof is in /usr/sbin?

Sorry, that is copy from web; I have this in skript:

getmp3filename("/usr/pkg/sbin/lsof -d mem | grep -i .mp3|");
getmp3filename("/usr/pkg/sbin/lsof -d 1-15 | grep -i .mp3|");

xmms is running:
$ ps xa | grep xmms
266 ?? S    1:19.28 xmms

but lsof has nope output still:
$ /usr/pkg/sbin/lsof -d mem | grep -i .mp3
$

$ /usr/pkg/sbin/lsof -d 1-15 | grep -i .mp3
$

xmms on NetBSD is a unlike xmms on linux?

Pavel T.