aris@tabbs.UUCP (Aris Stathakis) (04/09/90)
The title says it all: Is it possible to use two different gettys under SCO Xenix 2.3.2? I'd like to use one of the PD getty's for my modem line and the standard one for the console and terminals. Since XENIX doesn't use /etc/inittab, how can I do it? Is there possibly a PD implementation of init for Xenix that will allow me to use /etc/inittab instead of /etc/ttys? And finally, I'd like some recomendations on various flavors of getty out there. I'd like something that allows brain-dead end users to log in without having to press BREAK or ENTER to cycle speeds. Theoretically a constant speed interface modem would fix this, but I've never tried. Thanks in advance. Please mail replies to aris@tabbs.UUCP and i'll summarize. Aris -- Aris Stathakis | Bang: ..!uunet!ddsw1!olsa99!tabbs!aris or aris@tabbs.UUCP - UNIX is like sex - if you've tried it, you can't get along without it. - - If you haven't you really have no idea what the fuss is all about! -
goer@sophist.uucp (Richard Goerwitz) (04/10/90)
In article <1590@tabbs.UUCP> aris@tabbs.UUCP (Aris Stathakis) writes: > >Is it possible to use two different gettys under SCO Xenix 2.3.2? > >I'd like to use one of the PD getty's for my modem line and the standard >one for the console and terminals. Since XENIX doesn't use /etc/inittab, >how can I do it? > >Is there possibly a PD implementation of init for Xenix that will allow >me to use /etc/inittab instead of /etc/ttys? If this reply seems a little disjointed, it's because my four year-old son is sitting on my lap. What you need to do is write a program that sits between init and getty, and which reads an inittab file of your own choosing, and then overlays itself with whatever getty program that inittab file says it should over- lay itself with. Since init reads the /etc/ttys file, and only spawns a getty to lines that have been enabled there, you don't need to implement a full replacement inittab file. Just set up a file somewhere that lists the tty file, the command to be spawned, and the arguments to be passed. Then create a new getty which reads it and takes the appropriate actions. Please save the old getty program. You could, of course, get a new init command, but the above solution is really much easier. You'll always have a way into your system while you debug your program because Xenix, when booting, will let you go right into system maintenance mode if you want (no getty; just a shell). I have some code if you want it which does what you need. SCO has promised a full integration of telinit/inittab and enable/tty ap- proaches in a future release of Xenix. Since there really aren't going to be any future releases to speak of, I'd say you're on your own. -Richard L. Goerwitz goer%sophist@uchicago.bitnet goer@sophist.uchicago.edu rutgers!oddjob!gide!sophist!goer
nvk@ddsw1.MCS.COM (Norman Kohn) (04/13/90)
In article <8375@tank.uchicago.edu> goer@sophist.UUCP (Richard Goerwitz) writes: >In article <1590@tabbs.UUCP> aris@tabbs.UUCP (Aris Stathakis) writes: >> >>Is it possible to use two different gettys under SCO Xenix 2.3.2? >> >>I'd like to use one of the PD getty's for my modem line and the standard >>one for the console and terminals. Since XENIX doesn't use /etc/inittab, >>how can I do it? >> >What you need to do is write a program that sits between init and getty, >and which reads an inittab file of your own choosing, and then overlays >itself with whatever getty program that inittab file says it should over- >lay itself with. Perhaps I miss something here. The simplest thing ought to be to write a "getty" that looks around (say, for information about the environment) and execs the proper getty version. -- Norman Kohn | ...ddsw1!nvk Chicago, Il. | days/ans svc: (312) 650-6840 | eves: (312) 373-0564