Andy Goth wrote: > On Thursday, June 5, 2003 4:59 pm, Tommy Wareing wrote: > > I'm writing a utility which is invoked on a Solaris box, by a dtksh > > script (which I can't modify). > > What kind of X server are you using? XFree86 doesn't come with > anything calld XtInitialize or XtDisplay, so I don't know if we can > help you.
I have to admit, that from here (at home), I can't actually tell you. It's the X server from Solaris 2.8. On the other hand my home machine does has a man page for the XtDisplay function from the programming toolkit. And that's running XFree86 version 4.3. The dtksh documentation is available at http://docs.sun.com/db/doc/816-0283/6m6pgrf71?a=view but I'm fairly certain that for this problem, it's only relevant as an interface to the Xt functions. > > The dtksh script includes the two lines: > > XtInitialize TOPLEVEL printerConfig Dtlp "${@:-}" > > XtDisplay DISPLAY $TOPLEVEL > > > > after which $DISPLAY has been set to 0xd9158 > > I guess that could be a network name, maybe... (what kind of network > are you chaps using?), but it doesn't include the traditional :0 or > :0.0 or whatever at the end, indicating which server and which > screen on the host. We're using perfectly ordinary ethernet. Before XtDisplay is invoked, $DISPLAY is set to arum:0.0, as I'd expect. > printerConfig?? What's Dtlp? Also, what value does $TOPLEVEL have > at this point? Dtlp is a a (really unpleasant) wrapper script for graphical printer control under CDE. $TOPLEVEL has the value "W0". Does that mean anything to you? > Have you checked to see if that DISPLAY works as-is? No, unfortunately, 0xd9158 isn't recognised by our X clients, which just produce an "unable to open connection" message. I'm fairly certain is the text representation of a Display *, and is simply passed to other Xt functions, but since I don't know how to program X, this doesn't help me much. > You might want to contact your local system administrators, if you > need help understanding and working with otherwise-untouchable > system scripts. Ha, haha! hahaha! There's a reason I'm throwing myself on the mercy of the mailing list ;-) -- Tommy Wareing Oxford English Dictionary _______________________________________________ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86

