Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

backstory - i need to run an adobe air app, which does some things and takes a screenshot of itself and saves out a JPG, then kills itself. (on linux environment)

I have it successfully running on ubuntu in gnome environment. (on EC2, using NoMachine / NXClient remote windowing app)

But what i need, is to run it automated from a script. on the server. When I try running it from commandline (over ssh), i get the error:

Gtk-WARNING **: cannot open display: 

So, my question is, How can this be run automated from a script.

share|improve this question
    
GTK is reliant on X, you'd probably need to make some tweaks and use GTKfb (i.e. GTK Framebuffer) or find a virtual x framebuffer see here for that. –  nerdwaller Jul 27 '13 at 17:17

1 Answer 1

figured it out.

Xvfb :1 &
export DISPLAY=:1
./runMyApp &
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.