How to get Xvfb display number

喜欢而已 提交于 2019-12-21 11:33:10

问题


How can I get the display number that used while running Xvfb? For example somebody run

./Xvfb :14

I need somehow to get the used display number 14.

Thanks in advance


回答1:


on a unix system, run

ps -ef|grep Xvfb

and it should list it there with the process




回答2:


There are two ways I can think of:

  1. Look for the lock files, which will typically take the form \tmp.X*-lock, where * is the display number;
  2. Look at the log files, typically \var\adm\xfvb.log, but might be anywhere. There should be a line which says which display xfvb started listening to.


来源:https://stackoverflow.com/questions/2138131/how-to-get-xvfb-display-number

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!