Unix Technical Forum

507 Enterprise newbie advice

This is a discussion on 507 Enterprise newbie advice within the Sco Unix forums, part of the Unix Operating Systems category; --> Hi, When connecting a serial terminal or emulation program to a SCO system, it is /dev/tty1a for example, or ...


Go Back   Unix Technical Forum > Unix Operating Systems > Sco Unix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-15-2008, 02:26 PM
Rob S
 
Posts: n/a
Default 507 Enterprise newbie advice

Hi,

When connecting a serial terminal or emulation program to a SCO system, it is
/dev/tty1a for example, or /dev/ttya3 if it's on a terminal adapter.

Moving to Enterprise, with terminals now connecting via telnet, they are
designated /dev/ttyp0, p1 etc depending on the order they login.

Is there a way to "reserve" port designations, and force for example terminal
192.168.0.10 to always connect as /dev/ttyp0, terminal 192.168.0.11 to always
connect as /dev/ttyp1 etc etc.

many thanks


-Rob
robatwork at mail dot com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-15-2008, 02:26 PM
Scott McMillan
 
Posts: n/a
Default Re: 507 Enterprise newbie advice

On Thu, 10 Jun 2004 15:54:49 +0100, Rob S
<robatworkDeleteTheseFourWords@mail.com> wrote:

>Hi,
>
>When connecting a serial terminal or emulation program to a SCO system, it is
>/dev/tty1a for example, or /dev/ttya3 if it's on a terminal adapter.
>
>Moving to Enterprise, with terminals now connecting via telnet, they are
>designated /dev/ttyp0, p1 etc depending on the order they login.
>
>Is there a way to "reserve" port designations, and force for example terminal
>192.168.0.10 to always connect as /dev/ttyp0, terminal 192.168.0.11 to always
>connect as /dev/ttyp1 etc etc.
>
>many thanks
>
>
>-Rob
>robatwork at mail dot com


A couple of possibilities to mull over:
http://aplawrence.com/SCOFAQ/scotec2.html#specifictty
http://tinyurl.com/25mge

Perhaps explaining *why* you want to force specific IPs to specific
ttyps would elicit additional responses/solutions.


Scott McMillan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-15-2008, 02:26 PM
pablo hernandez
 
Posts: n/a
Default Re: 507 Enterprise newbie advice

Rob S <robatworkDeleteTheseFourWords@mail.com> wrote in message news:<40c873e5.111997654@giganews.nildram.co.uk>.. .
> Hi,
>
> When connecting a serial terminal or emulation program to a SCO system, it is
> /dev/tty1a for example, or /dev/ttya3 if it's on a terminal adapter.
>
> Moving to Enterprise, with terminals now connecting via telnet, they are
> designated /dev/ttyp0, p1 etc depending on the order they login.
>
> Is there a way to "reserve" port designations, and force for example terminal
> 192.168.0.10 to always connect as /dev/ttyp0, terminal 192.168.0.11 to always
> connect as /dev/ttyp1 etc etc.
>
> many thanks
>
>
> -Rob
> robatwork at mail dot com


No , is not possible as far as I know.

But you can know the IP of this session typing

who -ux

with older system I had some automatic process based on $TTY , now I
use for the same purpose :

HOST=`who -mx | awk '{print$6}'` ; export HOST
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-15-2008, 02:26 PM
Tom Parsons
 
Posts: n/a
Default Re: 507 Enterprise newbie advice Reply-To: scomsc@xenitec.on.ca

Rob S enscribed:
|
| When connecting a serial terminal or emulation program to a SCO system, it is
| /dev/tty1a for example, or /dev/ttya3 if it's on a terminal adapter.
|
| Moving to Enterprise, with terminals now connecting via telnet, they are
| designated /dev/ttyp0, p1 etc depending on the order they login.
|
| Is there a way to "reserve" port designations, and force for example terminal
| 192.168.0.10 to always connect as /dev/ttyp0, terminal 192.168.0.11 to always
| connect as /dev/ttyp1 etc etc.

I suspect this isn't the real question, so I'll ask why do you want to
do this? And what is the application that appears to insist on this.

--
================================================== ========================
Tom Parsons tom@tegan.com
================================================== ========================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-15-2008, 02:27 PM
Rob
 
Posts: n/a
Default Re: 507 Enterprise newbie advice

Rob S wrote:
> Hi,
>
> When connecting a serial terminal or emulation program to a SCO system, it is
> /dev/tty1a for example, or /dev/ttya3 if it's on a terminal adapter.
>
> Moving to Enterprise, with terminals now connecting via telnet, they are
> designated /dev/ttyp0, p1 etc depending on the order they login.
>
> Is there a way to "reserve" port designations, and force for example terminal
> 192.168.0.10 to always connect as /dev/ttyp0, terminal 192.168.0.11 to always
> connect as /dev/ttyp1 etc etc.
>
> many thanks
>
>
> -Rob
> robatwork at mail dot com


Many moons ago, someone posted the following:

=== cut here === 8< ===

A few years ago someone suggested using mscreen to solve this
problem of fixed ttys for network logins. You might be able to
locate it via deja.com.

In theory it would work like this:

you log in and the .profile includes the following
tty=`tty`
tty=`basename $tty`
myhost=`who -x|grep $tty|awk '{print $6}'`
HOME=/usr/mscreen/$myhost
cd $HOME
exec mscreen -n 1

you need to create the /usr/mscreen/<ip addresses> directories
with the file .mscreenrc in it. This file contains the pseudo
tty you wish to use. You can also add some checking to see if
$myhost is listed more than once in the result of the who -x
command.

I have not tested this yet so proceed with caution.

=== cut here === 8< ===

Also, under SCO 5.0.6+ you can use the "recon" utility as to run an
application on a specific tty.

Hope this helps !

Best,
Rob (the other one)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:50 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com