Subject: Re: pcvt and TIOCCONS
To: Ty Sarna <email@example.com>
From: Perry E. Metzger <firstname.lastname@example.org>
Date: 04/19/1996 08:28:36
Ty Sarna writes:
> I have a few issues with it:
> % Actions to be performed at login and logout time would be controlled
> % by two files: /etc/tty_login and /etc/tty_logout respectively. Both
> I'd really rather have it all in one file. See below.
Agreed. One file would be better.
> % The tty_name would be matched against the name of the current
> % tty line so all lines (and only those lines) with he tty_name
> % field matching would be processed.
> I like cgd's idea about supporting globs here.
> % The shell_command field would be run as 'sh -c "shell_command"'
> % with the following environment variable guaranteed to be set:
> % USER=user_name
> Also need GROUP for the user's group name.
> Might be nice to have TTY as the login tty's name.
Necessary, actually, plus the script should be called with a parameter
to tell you if you are logging in or out, so that in theory you could
have one program do the whole thing.