Why is it an ugly solution? Unix apps do this sort of thing frequently. It
works fine.
> -----Original Message-----
> From: Dustin Lang [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 20, 1999 12:00 PM
> To: [EMAIL PROTECTED]
> Cc: Java Linux Mailing List
> Subject: Re: JNI link to disk space
>
>
>
> Hi,
>
> > > > I am interesting in getting the disk space and partition
> > > > in a Java program by using JNI. What is the std UNIX API
> > > > call to do this? I have tried grepping the man pages
> > > > and got the source to kdf program but it didn't help
> > > > because it was executing `/usr/bin/df -k -T' and parsing
> > > > the output. Is there a native portable UNIX system call that
> > > > provides partition information and also disk space size and free
> > > > information?
>
> I'm working on an installer that also needs to find out this
> information.
> IBM Alphaworks has an Install Toolkit for Java that includes
> some classes
> for doing this sort of thing. For UNIX/Linux they just call
> df and parse
> the output. Sure, it's an ugly solution, but if it works and
> saves you
> from writing some irritating parsing code...
>
> If you find out or invent a better way (perhaps via JNI, as you
> originally suggested?), and you are able to release the
> source, I would be
> most grateful to see it! :)
>
> Cheers,
> dstn.
>
>
>
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
>
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]