[EMAIL PROTECTED] wrote:
>
> > > > > 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
> > > >
> > > > 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
g List
> Subject: RE: JNI link to disk space
>
>
> Sure, but the Java white papers keep mentioning things like
> "platform independent"... I figure they must have *some*
> reason for it...
>
> Aaron
>
> On Wed, 20 Oct 1999, Burkhart,Kelly wrote:
&g
Sure, but the Java white papers keep mentioning things like
"platform independent"... I figure they must have *some* reason for it...
Aaron
On Wed, 20 Oct 1999, Burkhart,Kelly wrote:
> Why is it an ugly solution? Unix apps do this sort of thing frequently. It
> works fine.
>
> >
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
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 -
> Peter Pilgrim writes:
Peter> On Solaris 2.5.1 I found `/usr/include/statfs.h'
Peter> Maybe it exists on linux too.
Yes, see 'man 2 statfs'.
Peter> struct statfs {
Peter> short f_fstyp; //FS type
Peter> long f_bsize; // block size
Peter> long f_frs
Original Message
Subject: Re: JNI link to disk space
Date: Tue, 19 Oct 1999 15:11:45 +0100
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
>
> [EMAIL PROTECTED] wrote:
> >
> > Peter Pilgrim wrote:
> > >
> > >
[EMAIL PROTECTED] wrote:
>
> [EMAIL PROTECTED] wrote:
> >
> > Peter Pilgrim wrote:
> > >
> > > 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 sou
[EMAIL PROTECTED] wrote:
>
> Peter Pilgrim wrote:
> >
> > 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
> > b
Hi Peter!
Yes! There are!
First to find out the partition do: fdisk -l. In fact fdisk is one of the
few mechanisms you can use to manipulate partitions under linux.
Second for disk size and free space do: df. Read the man for each of them as
they provide lots of usefull information.
Take Care!
Peter Pilgrim wrote:
>
> 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'
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
13 matches
Mail list logo