| I think .0 was somewhat confused, but somehow Andy managed to figure out the
real problem. I'm impressed.
In any case, to expand, a batch job certainly has run loginout. The problem
is that it will not have DECW$DISPLAY, and thus the job does not know where
to send the display. Andy's solution fixes this.
However, if I understand right, there may still be an issue. I think you
are saying that you want the batched application just sitting there waiting
for the user to log in. That is, if the user is NOT logged in, you want
the application to just hang.
That will not happen without some programming in the application. The
thing is that before the user is logged in, the application will probably
not be authorized to display on the workstation in question. This means
that once again, XOpenDisplay will bomb. What I do is to have my batch
job actually do a SPAWN with my application. Then the batch job looks
every minute or so to see if its child is still around. If not, it restarts
it. Thus, if the user is not logged in, the application bombs and the
batch job restarts it a bit later. The cycle repeats till the user logs
in, at which time incoming displays from the batch machine are enabled and
the application starts running.
Burns
|
| Thanks for the quick replies; but .0 is addressing another issue. The
application is run from the following command file.
The command file that is submitted:
$ set display/create/node=0/transport=local
$ run/nodeb menu
$ exit
The log file that results (minus extranious data not associated with error):
%XLIB-F-IOERROR, xlib io error
%TRACE-E-TRACEBACK, symbolic stack dump follows
module name routine name line rel PC abs PC
00017E26 00017E26
----- above condition handler called with exception 02DB821C:
%XLIB-F-IOERROR, xlib io error
----- end of exception message
0005B562 0005B562
0005BCBC 0005BCBC
000577DF 000577DF
00129443 00129443
00111393 00111393
0010240F 0010240F
MENU MENU 80 000000A3 00009E63
ADA$ELAB_MENU ADA$ELAB_MENU 00000009 00008609
0000A730 0000A730
00017BB2 00017BB2
ADA$ELAB_MENU ADA$ELAB_MENU 0000001B 0000861B
0000A70B 0000A70B
%SYSTEM-F-NOLOGNAM, no logical name match
The application called MENU does a Xt Initialize at line 80 in the code
and this is where it bombs. The application is awaiting input via a
mailbox just prior to the Xt Realize call. Andy's suggestion confirmed
what I was doing, but as can be seen the results are not what I want.
Am I missing something in the many undocumented, not supported .DAT
files that float about in an X-windowing system? Is this a problem
addressing the window server?
Richard
|