Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'What's the ugly error?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
What's the ugly error?
Authored by: jimhill on Dec 11, '01 02:14:18AM

Depending on the nature of the "ugly error", you may be able to eliminate it while keeping the xhost statements in your .cshrc if you wrap them in a conditional. I don't do csh and haven't in ages so I can't give a syntactically correct example.



[ Reply to This | # ]
What's the ugly error?
Authored by: adrianu on Dec 11, '01 11:11:00AM

In your .cshrc, wrap the xhost commands as follows...
if( $?DISPLAY ) then
  xhost commands go here...
endif
This will make sure that the DISPLAY variable is set before trying to execute the xhost commands... I do recommend the ssh way, though - if you are connecting to a machine that does not have ssh running then ask the owner/administrator WHY NOT!! Bye! Adrian

[ Reply to This | # ]