[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

3227.0. "Node specific login settings???" by CERN::EJM (Rick N. Backer) Mon Aug 20 1990 09:40

Does anyone know how to get a node specific login????

That is, I now work on an SPX so that my Icon Box and DECterm size and 
placements are suited for 1280 x 1024 but if I happend to log into another node
with a smaller number of pixels I want a different set up.  I've tried to use
DECW$LOGIN.COM of course but it gets run after the session manager and window
manager read there decw$*.dat files.  I need something that gets run first so I
can define search lists for data files depending on the node name.

Is there a way to do this or am I fighting city hall???

John
T.RTitleUserPersonal
Name
DateLines
3227.1here's my story...GSRC::WESTSCARY : A programmer with a screwdriver.Wed Aug 22 1990 16:5243
  Question:
    Which came first, the chicken or the egg?

  Answer:
    The Dinosaur.

  I've tried things in the past to do what you want and have not found
anything to work...at least automagically.

  The client apps need to have the smarts built in to even attemp this.

  If you left justify your positions then this will help.  As far as things
like DECterms go, I don't start them directly from the session manager.  I
do 'autostart' them, but I use a com file to determine the machine I'm on
and then place my DECterms appropriately.

  I make certain assumptions about which monitor I'm using by using the
following which come from the file SYS$MANAGER:DECW$DEVICE.COM :

$ VSII = (f$getsyi("CPU") .EQS. "8") .and. (f$getsyi("XCPU") .EQS. "1")
$ VS2000 = (f$getsyi("CPU") .EQS. "8") .and. (f$getsyi("XCPU") .EQS. "4")
$ MAYFAIR = (f$getsyi("CPU") .EQS. "10") .and. (f$getsyi("XCPU") .EQS. "1")
$ VS35x0 = (f$getsyi("CPU") .EQS. "10") .and. (f$getsyi("XCPU") .EQS. "3") !FF
$ VS3100 = (f$getsyi("CPU") .EQS. "10") .and. (f$getsyi("XCPU") .EQS. "4") !PV
$ RM = (f$getsyi("CPU") .EQS. "11") .and. (f$getsyi("XCPU") .EQS. "4") !RM


  Then just check which symbol is set and go from there.

  With this type of scheme you could use com files to start all of your
apps.  Find out which machine you are on and then set up the appropriate
resource files so when the apps start they will go where you want them
to.

  But as you mentioned in your note...the session manager and window
manager start first...so there's not much you can do in the way of
'magic' placement of your icon box (unless you left justify :^)  ).

  Maybe this will give you some ideas.  Hope it helps.

					-=> Jim <=-

3227.2CERN::EJMRick N. BackerThu Aug 23 1990 05:306
Simple and even elegant!! I never thought to replace all the autostart defs with
my own command files. This should work.  Thanks for the idea.  Of course as
stated it doesn't fix the icon box or session manager position but I guess I
can live with that.

John