title: Atlassian Bamboo command tasks not running correctly
body: <p>I have setup an Atlassian Bamboo deploy plan. One of its steps is to run a command to run automated UI tests written in Selenium for Python. This runs on a headless Centos 6 server. </p>
  
  <p>I had to install the X-server to simulate the existence of a display</p>
  
  <p>I made the following commands run in the system boot so that the X-server is always started when the machine starts</p>
  
  <p>Xvfb :1 -screen 1600x900x16</p>
  
  <p>export DISPLAY=:1</p>
  
  <p>The command task in the deployment plan simply invokes the following</p>
  
  <p>/usr/local/bin/python3.5 .py</p>
  
  <p>The funny thing is that when I run that directly from the command line it works perfect the the UI unit tests work. They start firefox and start dealing with the site.</p>
  
  <p>On the other hand, when this is done via the deployment command I keep getting the error "The browser appears to have exited "
  17-Apr-2016 14:18:23    selenium.common.exceptions.WebDriverException: Message: The browser appears to have exited before we could connect. If you specified a log_file in the FirefoxBinary constructor, check it for details" As if it still does not sense that there is a display.</p>
  
  <p>I even added a task in the deployment job to run X-server again but it came back with error that the server is already running.</p>
  
  <p>This is done on Bamboo version 5.10.3 build 51020.</p>
  
  <p>So, any ideas why it would fail within the deployment job?</p>
  
  <p>Thanks,</p>