T.R | Title | User | Personal Name | Date | Lines |
---|
59.1 | | MU::PORTER | a kinder, gentler nuclear arsenal | Sun Jan 29 1989 12:45 | 14 |
| What do you mean, "startup"?
System startup, or session startup?
Once upon a time, DECW$DISPLAY was defined as a system-wide logical
name. Now it appears in the job table for a "DECwindows process".
This means, for example, that FileView applications will get
a suitable name definition, that subprocesses of the session manager
will get one also, and that detached processes started by DECterm
get a definition as well.
If you're running batch jobs or background processes which execute
DECwindows applications, then you probably need to manually cause
DECW$DISPLAY to be defined appropriately.
|
59.2 | | HILLST::MASON | Explaining is not understanding | Sun Jan 29 1989 15:36 | 11 |
| Well, both I guess. If I reboot and don't log in locally, but rather
from a remote terminal, it's not defined. After I log in locally
and start DECterms, it is not there when examined from the DECterms
either. When attempting to run DECwrite from a DECterm window,
using the command (as suggested in the docs) "RUN SYS$SYSTEM:WRITER",
it won't start - fails with an "X toolkit error" or some such.
Defining DECW$DISPLAY from the DECterm solves the problem on the
subsequent execution attempt.
Gary
|
59.3 | | MU::PORTER | a kinder, gentler right to bear arms | Mon Jan 30 1989 09:33 | 7 |
| DECW$DISPLAY will never be automatically defined for login from a remote
terminal, because of the way it works (as described earlier). You
need to manually define it.
I don't understand why it isn't turning up in the job tables for
for DECterm logins, though. It's supposed to!
|
59.4 | Works as advertised for me | IAGO::SCHOELLER | Who's on first? | Mon Jan 30 1989 11:54 | 22 |
| re: .2
When you say it is not there for decterms, do you mean:
Session manager -pulldown Create Terminal Window
Wait for login to complete
show log decw$display
or are you doing something like the following?
Session manager -pulldown Create Terminal Window
Wait for login to complete
set host to someplace else
show log decw$display
The former case will work the latter will not. It will also not
show up automagically in a detached process (logical names are not
inherited from creator). It should be defined in subprocesses of
the session manager, file view and terminal emulator logins.
Dick
|
59.5 | Are you using to CHILD to create the terminals? | ATSEA::ELLISON | That is truly a wetbrain concept. | Tue Jan 31 1989 12:47 | 21 |
|
What the heck I'll ask here...
I have the same problem when I create DECterms using CHILD. It appears
that CHILD does not propigate (sic) the DECW$DISPLAY logical to the
new process (or maybe I'm doing something wrong in the child command)
BUT, it is similar to what the author of .0 is describing...
Jan
$ CHILD -
/detach/image=sys$system:loginout/nopass -
/pause=3 /insert /page='p5' -
/ix='p1' /iy='p2' /x='p3' /y='p4' -
/process="''p6'" -
/title="Term''p5'" /ititle="Term''p5'" -
/setup=sys$login:decw$terminal_default.dat
|
59.6 | Child it is... | HILLST::MASON | Explaining is not understanding | Fri Feb 03 1989 20:13 | 9 |
| Sorry, I've been away.
Yes, I am using Child to create the DECterms at startup.
I suppose that setting DECW$DISPLAY in SYLOGIN would be the easy
answer. Yes? No?
Thanks...Gary
|
59.7 | DEFINE/GROUP DECW$DISPLAY 'F$TRNLNM("DECW$DISPLAY") | QUARK::LIONEL | Ad Astra | Fri Feb 03 1989 20:36 | 5 |
| What I do is in my DECW$LOGIN.COM to define DECW$DISPLAY /GROUP.
Works for me...
Steve
|
59.8 | I'll make it work if I can | PRNSYS::LOMICKAJ | Jeff Lomicka | Mon Feb 06 1989 16:08 | 4 |
| If somebody could tell me an easy way to convince CHILD to get
DECW$DISPLAY defined properly in the created detached processes, I
would be glad to do it.
|
59.9 | Set sys$error = WSA# | STAR::BROUILLETTE | | Mon Feb 06 1989 17:15 | 15 |
|
The way decw$display gets propogated to the DECterm processes by the
session manager is as follows:
1. Session manager gets the current value of DECW$DISPLAY. This
should be a WSA workstation device which specifies a node, server,
screen.
2. The session manager does a CREPRC with sys$error - WSA#
3. Loginout checks for sys$error device type a workstation and
defines a job logical name decw$display = WSA#.
So, try changing the call to create the DECterm process to have
sys$error pointing to the current definition of decw$display.
|
59.10 | I'll give that a try. | PRNSYS::LOMICKAJ | Jeff Lomicka | Tue Feb 07 1989 11:36 | 4 |
| Thank's.
(That's so obvious I should have been able to figure it out for myself.)
|
59.11 | Not to be too picky, but what happens to sys$error in this case? | IO::MCCARTNEY | James T. McCartney III - DTN 381-2244 ZK02-2/N24 | Thu Feb 09 1989 16:03 | 5 |
|
Ummmm.... How do I get my hardcopy error log for the created process then?
James
|
59.12 | sys$error=sys$output | STAR::BROUILLETTE | | Mon Feb 13 1989 18:46 | 8 |
|
Yes, that is a problem. Unfortunately, there are a limited number of
ways to get information to the new process through CREPRC. Loginout
will set sys$error = sys$output after it defined decw$display for the
new process.
|
59.13 | There is precedent for this technique | PRNSYS::LOMICKAJ | Jeff Lomicka | Tue Feb 14 1989 15:28 | 10 |
| LOGINOUT.EXE never used SYS$ERROR for SYS$ERROR. LIB$SPAWN hooks
SYS$ERROR to a mailbox that it uses to send symbols and logicals to
LOGINOUT. LOGINOUT reads SYS$ERROR to get this information, presumably
if the device type is right.
Personally, I find this method to be a little questionable - although it
would be a lot less questionable if it were better documented.
(Oh, and yes, I was being sarcastic in .10.)
|
59.14 | We really need a better way... | IO::MCCARTNEY | James T. McCartney III - DTN 381-2244 ZK02-2/N24 | Tue Feb 14 1989 17:32 | 20 |
|
Well, I'll accept that there's no way to communicate between a detached job
and the creator, but why does DCL prevent you from using the mechanims that
has been hacked to do this? Doing a
$ run/uic='f$getjpi("","UIC") sys$system:loginout.exe -
/input=<input_command_file>
/output=<output_log_file>
/error=_WSAn:
results in no effect since (from Help):
"Note that the /ERROR qualifier is ignored if you are running
SYS$SYSTEM:LOGINOUT."
Would it be too much to ask for a supported mechanism? Oh well, I guess it's
off to write a program...
James
|