Thread View: pl.comp.lang.java
2 messages
2 total messages
Started by LprzemekL
Mon, 17 Oct 2011 07:01
getFreeSpace na zdalnej maszynie
Author: LprzemekL
Date: Mon, 17 Oct 2011 07:01
Date: Mon, 17 Oct 2011 07:01
10 lines
1492 bytes
1492 bytes
Hej,
Macie jakis pomysl jak sprawdzic wolne miejsce na zdalnych maszynach
Linux ?
program lokalnie to dziala:
File file = new File("/usr");
System.out.println("Free: " + file.getFreeSpace());
myslalem o Ganymed SSH-2 for Java, tylko nie mam pojecia jak za pomoca
tej biblioteki to zrobic.
Re: getFreeSpace na zdalnej maszynie
Author: Boguś
Date: Mon, 17 Oct 2011 15:34
Date: Mon, 17 Oct 2011 15:34
18 lines
1304 bytes
1304 bytes
Dnia 17-10-2011 o 09:01:14 LprzemekL <zubertowicz@tenbit.pl> napisał(a):
> Hej,
> Macie jakis pomysl jak sprawdzic wolne miejsce na zdalnych maszynach
> Linux ?
>
> program lokalnie to dziala:
> File file = new File("/usr");
> System.out.println("Free: " + file.getFreeSpace());
>
> myslalem o Ganymed SSH-2 for Java, tylko nie mam pojecia jak za pomoca
> tej biblioteki to zrobic.
Jeżeli możesz odpalić sesję SSH na zdalną maszynę, to wykonaj zdalnie df i
sparsuj wyjście.
--
Boguś
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads