U just got to change the DISPLAY variable .
Use this command 'export $DISPLAY=:0.0' at the tty ( or u can make appropriate changes in the program ).
This should help
Regards Tapesh
--- Akhilesh S Shirbhate akhilesh@it.iitb.ac.in wrote:
I wrote this now :
void main() { extern char ** environ;
execl("/home/akhilesh/TRIALS_PROJECT/DEAMONS/Button","-display
10.129.32.27:0",NULL);
}
The error shown was :
-display 10.129.32.27:0: cannot connect to X server
Now what to do :(( ... I got stuck !!!
try giving the IP address also: -display
ip_address:0
Philip
--
**********************************************************
Never say die unless you are dead !
- .oooO
- ( ) Oooo. Only those who will risk going too
far *
- \ ( ( ) Can possibly find out how far one
can go!*
- _) ) /
(_/ http://www.it.iitb.ac.in/~akhilesh/
**********************************************************
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com