How to get xvfb display number

How can I get the display number that was used while Xvfb was running? For example, someone starts

./Xvfb: 14

I need to somehow get the display number used 14.

Thanks in advance

+6
x11
source share
2 answers

on a unix system, run

ps -ef|grep Xvfb 

and he should list it there using the process

+7
source share

I can think of two ways:

  • Locate the lock files, which usually take the form \ tmp.X * -lock, where * is the display number;
  • Look at the log files, usually \ var \ adm \ xfvb.log, but maybe anywhere. There should be a line that says which xfvb screen started to listen.
+1
source share

All Articles