Find the answer to your Linux question:
Results 1 to 2 of 2
Hi Guys, I am able to start x server using the below command: Code: startx -- `which Xvfb` :1 -screen 0 1024x768x24 2>&1 >/dev/null & and i am sending commands ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    1

    How to stop the Xserver started by xvfb command


    Hi Guys,

    I am able to start x server using the below command:
    Code:
    startx -- `which Xvfb` :1 -screen 0 1024x768x24 2>&1 >/dev/null &
    and i am sending commands to the x server like below:
    Code:
    DISPLAY=:1 cd /home/ram/workspace/selenium/
    DISPLAY=:1 ./go
    My questions are how to stop this server so that i can run the below command again with out getting the error saying that server is already running
    Code:
    startx -- `which Xvfb` :1 -screen 0 1024x768x24 2>&1 >/dev/null &

    I have read in a forum abt ctrl+alt+F1 but it brought me to console..I did not know what to do..I just used the shutdown command to restart..

    Also..I dont want to stop my current desktop x server..I just want to stop the xserver started by the above command..

    Please help me...

    It would be helpful if some one can tell me how to take the video of what is happening in the xserver..which i started..

    NOTE: I am very dumb in the world of linux..Please explain

    Thanks in Advacne
    Apollo

  2. #2
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    664
    Find out which background job it is (probably 1):
    jobs
    Then kill it:
    kill %1
    (or whatever the job number in square braces is at the beginning of the jobs command output). You may need kill -9 %1 for a sure kill.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •