Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java アプリ (シリアル コード) があり、Linux ターミナルを使用してループで 100 回実行したいと考えています。後で、プログラムによって生成された結果を収集したいと思います。
ループで実行する方法は?
シェルスクリプトを作成してターミナルで実行できます
#!/bin/bash max=10 for i in `seq 2 $max` do java -jar path/to/jar/file.jar done