greep%su-dsn@sri-unix.UUCP (10/31/83)
If you don't need the features of getty (eg detecting upper-case only terminals) or login (accounting and creating an entry in utmp), and if what you want is one tty line (I assume that's what you mean by "port") to always run the same program, then instead of trying to fake a login, you could disable that line for logins and put an entry in /etc/rc that starts up your program talking to that line. If the program is one that could possibly terminate, then you could instead start up a shell file which just runs that program in a loop, so that if it exits, a new copy starts up again. (You would probably also want it to change the uid.)
nrf@whuxle.UUCP (11/01/83)
#R:dartvax:-31700:whuxle:1900001:000:121 whuxle!nrf Nov 1 12:20:00 1983 Rather than write a shell loop, why not install a line in /etc/inittab that uses the special program instead of 'getty'?
wls@astrovax.UUCP (11/02/83)
>Rather than write a shell loop, why not install a line in /etc/inittab >that uses the special program instead of 'getty'? Unfortunately 4.1 BSD version of Unix doesn't have /etc/inittab. I don't know about 4.2 BSD. That was one place where the USG unix's are an improvement. -- Bill Sebok Princeton Univ. Astrophysics {allegra,akgua,burl,cbosgd,decvax,ihnp4,knpo,princeton}!astrovax!wls