Re: test if x server is running on a given display

2004-09-21 Thread Matt Price
thanks dave, that's very cool. now... I don't program in c. would it be easy to modify this program in two ways: 1) pass the display number as a parameter 2) print or return a specific error message if the connection is not accepted? -- NEW VERSION -- #include int main(argc, argv) int argc; c

Re: test if x server is running on a given display

2004-09-17 Thread Stefan O'Rear
On Fri, Sep 17, 2004 at 12:02:08PM -0400, Matt Price wrote: > Dave Howorth wrote: > > >>know whether there's a way to contact the server directly to see > >>whether it's > >>REALLY running > > > > > >The simplest way to me is to write an X client program that just makes a > >connection, then

Re: test if x server is running on a given display

2004-09-17 Thread Matt Price
Dave Howorth wrote: know whether there's a way to contact the server directly to see whether it's REALLY running The simplest way to me is to write an X client program that just makes a connection, then disconnects. Something like this in fact: #include #define DISPLAY ":0.0" int main(argc

Re: test if x server is running on a given display

2004-09-16 Thread Dave Howorth
Matt Price wrote: thanks to stefan for that answer! works great. though for fun, I'd still ike to know whether there's a way to contact the server directly to see whether it's REALLY running The simplest way to me is to write an X client program that just makes a connection, then disconnects.

Re: test if x server is running on a given display

2004-09-16 Thread Matt Price
Matt Price utoronto.ca> writes: thanks to stefan for that answer! works great. though for fun, I'd still ike to know whether there's a way to contact the server directly to see whether it's REALLY running matt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe

Re: test if x server is running on a given display

2004-09-10 Thread Stefan O'Rear
On Fri, Sep 10, 2004 at 01:00:13PM -0400, Matt Price wrote: > hi folks, > > I need to be able to test whether an x server is running on a given > display on localhost, for a script I'm writing (it's a python script > automating openoffice, but I could launch it from a bash wrapper no > problem). I