Tcl Error no display name and no DISPLAY environment variable
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
The DISPLAY is indeed an environment variable, you can reference it firstly from a shell (like BASH or CSH) and also from tcl scripts.
type "env" in a shell and you can see the environment variables defined in your login environment.
type "echo $DISPLAY" in a shell to see the current value of the variable. Chances are it is empty.
If you set it to ":0" then it should just use the display of your machine. Otherwise you can attempt to pipe the screen output to another machine by "machineip:0" that will only work if they have permitted the connection.
Hopefully that is the only problem you need to fix.