Link to home
Start Free TrialLog in
Avatar of Zombite
Zombite

asked on

ptty assignment to specific ip addresses

I have a site that are moving (slowly) from serial to IP
They all user the same username to login (accounting software - cobol - not my choice).
The software uses a script to assign a terminal number based on the line eg tty1a1 = terminal 1 ptty2 = terminal 7 etc etc.

My problem.
Now they are moving to ip the user will get a random ptty session and the terminal number changes. the stupid accounting program uses terminal numbers to identify such things as print jobs.

Can you make a user on a fixed ip address get a specifc ptty session ?  eg 198.168.1.1 get ptty0 and or ptty1 etc etc
ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zombite
Zombite

ASKER

The application (cobol) already runs a script that checks the tty# and sets the terminal number.
Mutter, I can change the script but... hopefully the cobol ppl won't overwrite it again. Just thought if there was any op sys method to detect ip and etc etc but if the script is the only way to go then I will re open my scipting book ;-)
I thoght I remembed someone having asked about a similar problem in the past. I found the reference and while it's not exactly the same problem it's close enough. The answer in that case turns out to be the same as here. Basically, if you need to associate an IP with some unique identifier for a legacy program to use it'll have to be done after the user has logged in by a script or program.
Avatar of Zombite

ASKER

Ill accept the first script answer ;-)