| T.R | Title | User | Personal Name
 | Date | Lines | 
|---|
| 1378.1 |  | QUARK::LIONEL | Free advice is worth every cent | Wed Sep 06 1989 08:23 | 8 | 
|  |     The 15-character limit on process names is a VMS limitation.  The
    error message is inane, I'll admit.  I recall griping about it many
    years ago.
    
    Can't help on the other problems.
    
    			Steve
 | 
| 1378.2 |  | ERIS::CALLAS | The Torturer's Apprentice | Wed Sep 06 1989 09:46 | 6 | 
|  |     re the stupid error message:
    
    Noted. I'll fix it in a future release.
    
    	Jon
 | 
| 1378.3 | Cannot use /DETACH and parameter | EZWIND::LEVY | Bound to cover just a little more ground | Wed Sep 06 1989 11:22 | 18 | 
|  | The following works for me:
CREATE/TERM-
 /PROCESS="VWSlat"-
 /WINDOW_ATTRIBUTES=(-
  ICON_NAME="LAT",-
  TITLE="VWSlat",-
  X_POSITION=10,-
  Y_POSITION=625,-
  COLUMNS=80,-
  ROWS=10) -
  $SYS$SYSTEM:VWSlat
  
Your problem is using the /DETACH qualifier. The documentation states that
the parameter is only used when /DETACH is not specified.
	- Dave
 | 
| 1378.4 | Correction...works for me with restrictions | EZWIND::LEVY | Bound to cover just a little more ground | Wed Sep 06 1989 16:39 | 37 | 
|  | Since HANNAH:: seems to be sick today, I'll put this here.
I have to change my previous reply to say "with restrictions".  I'll enter a 
QAR on this.
I have Identical commands in a command procedure, in my FileView Verbs and 
Menus, and in the Session Manager Applications Definitions.  The commands are 
as follows:
$CREATE/TERM-
 /PROCESS="DECterm_VWSlat"-
 /WINDOW_ATTRIBUTES=(-
  ICON_NAME="LAT",-
  INITIAL_STATE=ICON,-
  TITLE="VWSlat",-
  X_POSITION=10,-
  Y_POSITION=625,-
  COLUMNS=80,-
  ROWS=10) -
  RUN SYS$SYSTEM:VWSlat
$!
My results are that things work fine if I execute the command procedure from
a DECterm or if I execute the commands from FileView.  
However, I am unable to successfully execute this from the Session Manager 
Applications Menu.  An ICON is created (or if I remove the INITIAL_STATE=ICON,
a DECterm window is created), but it disappears with no error message that I
can find very quickly.
Am I doing something wrong?  Is this a bug?  Is there some way to find the 
error message? 
Thanks,
	- Dave 
 | 
| 1378.5 | I'm also having problems with create/term in session manager | LNKUGL::BOWMAN | Bob Bowman, CSC/CS SPACE Team | Wed Sep 06 1989 18:44 | 10 | 
|  | I have been playing with .-1 in the session manager today too.
I found I could sometimes get the session up, but only when generating certain
kinds of errors. When I eliminated the errors, the application refused to run
any longer. It almost acts as if it is getting an EOF (^Z) on the input right
after it starts, as I get the window up, VWSLAT starts, displays its prompt
and immediately exits.
Anyone have any clues?
 | 
| 1378.6 | CREATE/TERMINAL/WAIT | HANNAH::MESSENGER | Bob Messenger | Wed Sep 06 1989 19:31 | 18 | 
|  | Re: .4
When you run an application from the session manager, the session manager
creates a detached process (let's call this Process A), and in that process
it runs the command you specified, in this case CREATE/TERMINAL.  If you don't
use /DETACH, CREATE/TERMINAL creates a subprocess (Process B) in the DECterm
window.  Once the window has been created, the CREATE/TERMINAL command
completes.  If you ran CREATE/TERMINAL from a DECterm window you'll get a DCL
prompt, but if you ran it from the session manager, its process (Process A)
will exit.  Since Process B is a subprocess of Process A, it will also exit,
and your DECterm window will disappear.
You can get around this by specifying /WAIT on your CREATE/TERMINAL command
line.  This means the CREATE/TERMINAL command won't complete until Process B
exits.
				-- Bob
 | 
| 1378.7 | THANKS! | EZWIND::LEVY | Bound to cover just a little more ground | Thu Sep 07 1989 08:29 | 12 | 
|  | Many thanks, Bob!
That also helps to explain why I'd see the process count on the system 
increment by 2.
It's really too bad that the /DETACH qualifier will not use the parameter!
It's nice to autostart things like VWSlat, but I may need to manually start
it from FileView in order to conserve resources.  We'll see...
	- Dave
 | 
| 1378.8 | One solution... | LNKUGL::BOWMAN | Bob Bowman, CSC/CS SPACE Team | Thu Sep 07 1989 10:35 | 23 | 
|  | Now that I understand what is happening, here is a solution to autostarting in
only one process...
I defined the Lat application in the Session manager as:
Create/term/detach/process="DECwLat"/window=(rows=10,columns=80,title="DECwLat",
icon_name="DECwLat",Initial_state=Icon)
This of course will start a detached terminal session, but it will run your
LOGIN.COM. So in login.com I added the line:
$If f$getjpi("","PRCNAM") .eqs. "DECwLat" then @sys$login:run_lat.com
and in run_lat.com I have:
$define/user sys$input sys$command
$run sys$system:vwslat.exe
$logout
I can now autostart the VWSlat software and when it exits, the process is gone.
No extra resources are used.
 | 
| 1378.9 | You just gave me an idea | PRNSYS::LOMICKAJ | Jeff Lomicka | Thu Sep 07 1989 12:01 | 14 | 
|  | Hey, Bob,
Here's an idea!  Allow /NOPROCESS to accept a command parameter,
and LIB$DO_COMMAND the parameter value as you exit.
Bear in mind that I don't remember the exact syntax for CREATE/TERMINAL:
This way, you could do a
    CREATE/TERMINAL/NOPROCESS/LOGICAL_NAME=(SYS$INPUT,SYS$OUTPUT) RUN VWSLAT
thus getting CREATE/TERMINAL to create a new terminal device to use as
the primary I/O device for the process.
If I get a chance I'll add this capability to CHILD and see how it works out.
 | 
| 1378.10 | Good stuff! | NECSC::LEVY | Bound to cover just a little more ground | Thu Sep 07 1989 15:25 | 8 | 
|  |     Thanks for the idea, Bob!
    
    Much better than the answer I got from the QAR (which basically said
    that it would be re-worked in V3).  Very creative.  I guess that's why
    you guys at the CSC-CS get the big bucks, eh?  :-)
    
    	- Dave
 | 
| 1378.11 | Sounds interesting... | HANNAH::MESSENGER | Bob Messenger | Thu Sep 07 1989 17:12 | 17 | 
|  | Re: .9
I'll be interested in hearing how it works out, Jeff.  I think the main
reason DECterm doesn't allow a command to be passed with anything but
/PROCESS/NODETACH is that there were restrictions in CHILD about the
kinds of commands that could be run in a detached process, and I didn't
want to have to worry about that.  It looks like LIB$DO_COMMAND might have
similar restrictions, e.g. you have to be running in a process that has a
CLI.  It will help if you try this stuff in CHILD and see what the problems
are.
Of course, people can always use the DECW$TERM_PORT routine to create their
DECterm windows from a program and create their processes any way they like --
a small matter of programming.
				-- Bob
 | 
| 1378.12 |  | PRNSYS::LOMICKAJ | Jeff Lomicka | Fri Sep 08 1989 10:23 | 7 | 
|  | If CHILD or CREATE/TERMINAL is running, then you KNOW that the command
interpreter is there.  What I'm talking about is NOT creating a new
process, but instead, re-using the process that is running CHILD.
I'll let you (all) know when I have something.
 | 
| 1378.13 | create/term/window_attr colors | BINKLY::KUMPF | john, vax chip design, hudson, MA, USA | Fri Nov 16 1990 18:42 | 17 | 
|  | 
my system manager gave me a list of pre-defined colors to use with the
	create/terminal/window_attributes=(background=?,forground=?)
command.
i admit it is a long list.
still, is there a way to specify any color i want in terms of
Red/Green/Blue percentages like i do from SM's customize window menu?
for example, i'd like to specify a dark red window with R20 G0 B0 ,
or a yellow window with R100 G100 B0
thanks in advance,
john
 | 
| 1378.14 | yes... | WIDGIT::WEST | SCARY : A programmer with a screwdriver. | Sat Nov 17 1990 18:16 | 13 | 
|  | 
  You should be able to use the syntax #rrrrggggbbbb when specifying
the colors.
  I think I've done this before...just not sure...I'm at home and have no
way of checking this at the moment.
  Give it a try and see what happens...
	CREATE/TERM/WINDOW=(FORE=#FF4356FC2323, BACK=#FFFF0000F444)
					-=> Jim <=-
 | 
| 1378.15 | add a named color | VINO::MCARLETON | Reality; what a concept! | Mon Nov 19 1990 11:27 | 8 | 
|  |     
    You could also have the system manager add a named color to the
    SYS$MANAGER:DECW$RGB.COM file for you.
    
    Add a line that looks like this and restart the server.
    
$ decw$define_server "DECW$RGB_myblue" "2537,1200,37779"
    
 | 
| 1378.16 | #rrrrggggbbbb makes me happy | BINKLY::KUMPF | john, vax chip design, hudson, MA, USA | Mon Nov 19 1990 11:40 | 4 | 
|  | works like a charm, jim
thanks tons.
 |