Ciao e grazie per la risposta..

Ma come immaginavo mi stampa:
codice:
Avvio wget...
Wget è partito
ma wget non è partito per nulla.. Proprio perchè wget è un programma che dato un indirizzo internet scarica il file a quell'indirizzo internet e mi accorgo che nella cartella di destinazione non ha scaricato un bel niente. E' proprio la waitfor() che blocca il tutto...

Nessuno ha idee??

Il problema grosso secondo me è che il metodo waitfor() è un metodo abstract. Vi copio ciò che ho trovato sull'api di java 1.6.

waitFor
public abstract int waitFor()
throws InterruptedExceptioncauses the current thread to wait, if necessary, until the process represented by this Process object has terminated. This method returns immediately if the subprocess has already terminated. If the subprocess has not yet terminated, the calling thread will be blocked until the subprocess exits.

Returns:
the exit value of the process. By convention, 0 indicates normal termination.
Throws:
InterruptedException - if the current thread is interrupted by another thread while it is waiting, then the wait is ended and an InterruptedException is thrown.


Grazie mille!

Ciao a tutti!