Re: Telnet from Linux to SCO OpenServer 5.0.6

From: Ian Wilson (scobloke2_at_infotop.co.uk)
Date: 04/29/03

  • Next message: Brian K. White: "Re: Telnet from Linux to SCO OpenServer 5.0.6"
    Date: Tue, 29 Apr 2003 08:45:43 +0000 (UTC)
    
    

    pierreforget wrote:

    <stuff about mapchan removed>

    >
    > Now, if I want to keep this permanent only for this Linux station, how
    > can I do this? All the stations or terminals get on with the same login,
    > so if I modify the login, they other ones will be screwed up, if I
    > understand right.

    What are the values of the TERM variable? When I login at a Linux
    console and telnet to a SCO OSR505 box then I get TERM=linux (which
    OSR505 complains about since I haven't imported a terminfo entry)

    You can use TERM in an if statement in the .login or .profile (depending
    on login shell) to conditionally execute the appropriate commands.

    > All these machines or terminals have a fixed IP address. Will the same
    > machine always logon to the same ttyp?

    No, ttyp numbers are allocated on a first come first served basis. You
    may be able to find the client IP-address. Many Unixes (but not OSR505)
    show your client hostname/IP-address in the who command (e.g. who -u on
    Linux). Probably theres some way on OSR505 to take the PID from who -u
    and use another command to link that to an IP-address. A bit of shell
    scripting will do the trick I expect.

    > Unless I create another login specifically for this Linux machine? Which
    > would include the reference to the right mapchan?

    If all else fails. Checking the TERM variable looks the best way to me.

    -- 
    Ian Wilson.
    

  • Next message: Brian K. White: "Re: Telnet from Linux to SCO OpenServer 5.0.6"

    Relevant Pages