Bonsoir,

Mon code est le suivant:

import java.io.IOException;

public class Main {


public static void main(String[] args) throws IOException {
Process Proc = null;
Proc=Runtime.getRuntime().exec("cat /proc/cpuinfo");

}

}
Je veux récupérer le résultat de la commande cat dans une chaîne car j'ai besoin de ses informations après, est ce c'est possible?

Merci