Dedicated LAT service question

From: Mike McGovern <Michael.McGovern_at_tcd.ie>
Date: Tue, 17 Sep 1996 13:07:59 +0100

I want to set up a LAT service which automatically logs into a
pre-defined username (with no password).

As a start I installed /usr/examples/lat/latdate.c and did this:
 latcp -A -a showdate "showdate service" -o
added this to inittab:
 lat630:234:respawn:/usr/sbin/latdate /dev/lat/630 showdate
and it worked fine.

Next I changed latdate.c to do the login instead of displaying the date:
 replacing
        execl("/bin/date","date",NULL);
 with
        execl("/bin/login", "login", "userx",NULL);

Now the service logs me in OK but as soon as I hit a key the service
disconnects me.

I guess it's something to do with ioctls and termios but that's black
magic to me. I'd be very grateful for some suggestions. I'm on DU3.2

Thanks.
-- 
  Mike McGovern
  =============
Received on Tue Sep 17 1996 - 14:44:03 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT