[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: your mail
On Mon, Jun 02, 2003 at 10:19:06AM +1000, escii zer0for0je wrote:
> Hello everyone.
> Thankyou for your reply, I'm going to try explain a bit more of my situation
> so you can get an idea of what im trying to do.
>
> I've wrote a little C program that gets the pid of mpg123, uses lsof
> to find out what mp3 it has open, then mpg123info to get information
> from the mp3, and this end result is dumped to stdout.
>
> THE PROBLEM: the kernel does not store the entire filename in memory
> only a porition of it and inodes and such, so i can only
> properly locate mp3's if thier shorter than N ( N being the
> biggest possible file name without openbsd's kernel truncicating
> it)
>
> Do you have any solutions to my problem, speed is also and issue.
> so searching a entire parition for a certain inode is a bad idea.
Isn't mpg123 spitting out the name of the song on stdout while
opening it. Why don't you run mpg123 as a child of program that can
analyse its output?
>
> Thank you.
--
Hugo Villeneuve <hugo@EINTR.net>
http://EINTR.net/
- References:
- No Subject
- From: escii zer0for0je <brendan@escii.org>