A /dev/null equivilent for DISPLAY when the display is just noise

前端 未结 5 1623
春和景丽
春和景丽 2021-02-05 06:39

I\'m running a java app which creates a visual display of some of the things it is doing, while it is doing it. However, I\'m want to run this in a script that won\'t have a dis

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-05 07:06

    If it's a java program you can use the headless mode to run the application.

    Try to run it with -Djava.awt.headless=true parameter, like this if it's a jar file:

    java -Djava.awt.headless=true -jar jarfile.jar

    More about headless mode...

提交回复
热议问题