4

I trying to get a screen shot by using the following two tools (something relative to qt, webkit and etc. maybe)

when run it on server using xvfb-run following the guide of them, I got the error: Xvfb failed to start

then I searched the situation and find a similar question here

xvfb run error in ubuntu 11.04

then try to add

--auto-servernum --server-num=1 

now the whole command is:

xvfb-run --auto-servernum --server-num=1 -server-args="-screen 0, 640*480*24" python webkit2png.py --url=http://google.com --out=test.png

but got another error: /usr/bin/xvfb-run: 187: kill: No such process

how to solve it ?

Community
  • 1
  • 1
Wei Lin
  • 749
  • 2
  • 6
  • 9

2 Answers2

10

It works when I remove "-server-args". Try doing that.

xvfb-run --auto-servernum --server-num=1 python webkit2png.py --url=http://google.com --out=test.png

This is the command you're looking for.

The Unfun Cat
  • 29,987
  • 31
  • 114
  • 156
user1072651
  • 116
  • 1
  • 3
5

server-args option is wrong, in your case it should be :

--server-args="-screen 0, 640x480x24"

Tof
  • 51
  • 1
  • 1