From: Walter Roberson on
Guillaume Champlong wrote:

> I am using matlab compiler to launch matlab code through CGI. I am
> testing locally only, for the moment (MAMP on MacOSX snow leopard).
>
> When the script is launched through CGI but, I am getting this warning :
>
> "Warning: No display specified. You will not be able to display graphics
> on the screen."
>
> whereas all is fine when I run it from the console. I tried to set the
> DISPLAY environment variable in the bash script calling my matlab
> program, but no success.
>
> Can anyone help?

What is your goal? To display graphics on the screen even though the program
has been triggered by a CGI script (which in theory could be from anywhere,
perhaps even several simultaneously) ? Or to get rid of the warning? If you
want to get rid of the warning include -nodisplay in the matlab options (for
Unix.) If you want to display on to the screen, use -display followed by the
display name in the command-line options (for Unix), and set your X
authorization to accept connections from the web server (not generally a good
idea.)