Re: JNI link to disk space

1999-10-21 Thread Peter Pilgrim
[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 > > > >

Re: JNI link to disk space

1999-10-20 Thread Jörg Strebel
> > > > 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

RE: JNI link to disk space

1999-10-20 Thread Burkhart,Kelly
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

RE: JNI link to disk space

1999-10-20 Thread Aaron Mulder
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. > > >

RE: JNI link to disk space

1999-10-20 Thread Burkhart,Kelly
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

Re: JNI link to disk space

1999-10-20 Thread Dustin Lang
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 -

Re: [Fwd: Re: JNI link to disk space]

1999-10-19 Thread Juergen Kreileder
> 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

[Fwd: Re: JNI link to disk space]

1999-10-19 Thread Peter Pilgrim
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: > > > > > >

Re: JNI link to disk space

1999-10-19 Thread Peter Pilgrim
[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

Re: JNI link to disk space

1999-10-19 Thread Peter Pilgrim
[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

Re: JNI link to disk space

1999-10-18 Thread Sebastian-Anton Ponovescu
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!

Re: JNI link to disk space

1999-10-18 Thread Nathan Meyers
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'

JNI link to disk space

1999-10-18 Thread Peter Pilgrim
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