Warning: No display specified. You will not be able to display graphics on the screen.

  • Follow


Hi,

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?

thx

G.
0
Reply Guillaume 5/21/2010 4:13:05 PM

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.)
0
Reply Walter 5/21/2010 6:22:45 PM


1 Replies
1439 Views

(page loaded in 0.047 seconds)

Similiar Articles:













7/21/2012 8:26:08 AM


Reply: