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

Conference smurf::ase

Title:ase
Moderator:SMURF::GROSSO
Created:Thu Jul 29 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2114
Total number of notes:7347

2053.0. "check on servicename ?" by OSLLAV::SVEINN_P (Svein Nordrum) Fri May 09 1997 06:21

    DIGITAL Unix v3.2g, Truecluster.
    
    Is it possible to check on servicename after login to set environment
    variables depending on the service you are logged in via ?
    
    thanks in advance
    
    Svein
T.RTitleUserPersonal
Name
DateLines
2053.1BACHUS::DEVOSManu Devos NSIS Brussels 856-7539Fri May 09 1997 17:048
    Hi,
    
    The service(s) running on the node you are connected to can be found by
    the presence of a file named "SERVICENAME_IS_RUNNING" in /var/ase/tmp.
    
    So, you can test which service is running in the .profile
    
    Manu.
2053.2more than one service runningOSLLAV::SVEINN_PSvein NordrumMon May 12 1997 03:4311
    Thanks for your reply Manu. I'm still not sure about how this test can
    be done, if I take a look at /var/ase/tmp I will find these services:
    
    nnbaan_IS_RUNNING  nnoko4_IS_RUNNING  nnusers_IS_RUNNING
    
    If I'm logged on via service nnoko4, how can the system tell me that
    I'm logged on at that particular service, when there are more than one
    services running ?
    
    cheers
    Svein
2053.3COMICS::CORNEJWhat's an Architect?Mon May 12 1997 06:094
    Can UNIX tell which IP address you used with rlogin (or whatever)?
    
    Jc
    
2053.4KITCHE::schottEric R. Schott USG Product ManagementTue May 13 1997 04:024
My guess is telnet/rlogin don't check..they probably accept
any address...it could be done technically, but it does not
work that way.

2053.5???BACHUS::DEVOSManu Devos NSIS Brussels 856-7539Fri May 16 1997 17:528
    Hi Svein,
    
    Sorry for this late reply, but I was at the Unix symposium in Berlin.
    If you have multiple login service, then, I am afraid that you have no
    luck to know to which service you connected the system. 
    
    Manu.