You need to instruct it what DISPLAY to run on.

DISPLAY=... command-to-run-selenium

You should also need (I think) to do something with X authentication (xauth)

Are you sure that running it from cron is suitable? Seems very unusual for a GUI program.

On 5/02/2011, at 3:08 AM, Roland RoLaNd wrote:

Dear all,

i'm trying to run multiple  selenium rc server on a centos box (different ports)
with developers connecting to it through VNC (different respective ports) to check their automated test result.
i can easily do the above manually (when it comes to running RC server).
though automating the process is proving to be difficult.
can anyone guide me on how to run a service on a specific display in an automated process?

right now if i connect to a vnc session (any port) and i run it manually through iterm, it works normally.
though setting an cron job that does the above, isnt working (rc opens in shell instead of on each dev's assigned display)


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos