in reply to Replacing a Tty with a perl script

Essentially, you just need to put your script in place of the getty (or variant). I'm not familiar enough with BSD to know if it is handled in exacly the same manner, but for a typical linux distro, you control this in your /etc/inittab file. I haven't monkeyed with it myself, but I think that you could get away with just changing:
1:2345:respawn:/sbin/mingetty tty1
to
1:2345:respawn:/sbin/myscript.pl tty1
Anyway, that's a good place to start trying.
------------ :Wq Not an editor command: Wq

Replies are listed 'Best First'.
Re: Re: Replacing a Tty with a perl script
by MiggyMan (Sexton) on Apr 26, 2004 at 08:10 UTC
    I did actualy try this but it it seems the os objects to having a tty replaced with anythinh but a properly written tty, or at least it objects to having something that doesnt behave the same way :)
      I take that back, editing the ttys file does work, but you have to set the type to unkown! Still using term::readkey in conjunction with that seems to herrald the best results.