publicstaticvoid main(String args[]) throws Exception
{ if (!System.getProperty("os.name").equals("Linux")) {
System.out.println("Only for Linux"); return;
}
UnixCommands.ensureCommandsAvailable("false");
final String falseCmd = UnixCommands.findCommand("false"); for (int i = 0; i < N; i++) {
Process p = Runtime.getRuntime().exec(falseCmd); int s = p.waitFor();
System.out.print(s);
System.out.print(' '); if (s != 1) {
System.out.println(); thrownew Exception("Wrong status");
}
}
System.out.println();
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.