// start the process command
String []cmd = {executable,param1,..,paramN}
Runtime runtime = Runtime.getRuntime();
Process proc = runtime.exec(cmd);
// put a BufferedReader on the process output
InputStream inputstream =
proc.getInputStream();
InputStreamReader inputstreamreader =
new InputStreamReader(inputstream);
BufferedReader bufferedreader =
new BufferedReader(inputstreamreader);
// read the process output
String line;
while ((line = bufferedreader.readLine())
!= null) {
System.out.println(line);
}
// check for process failure
try {
if (proc.waitFor() != 0) {
System.err.println("exit value = " +
proc.exitValue());
}
}
catch (InterruptedException e) {
System.err.println(e);
}
Il Covid torna a minacciare la Calabria. Salgono casi e ricoveri. Il tasso sfiora il 32%
-
CATANZARO In Calabria, ad oggi, il totale dei tamponi eseguiti sono stati
325.5964 (+6.879). Le persone risultate positive al Coronavirus sono
420.825 (+2....
1 ora fa
Nessun commento:
Posta un commento