Re: How call a C program when the user log-in??

Jake (jake@ams.com)
Mon, 7 Apr 1997 09:08:00 -0500 (CDT)

On Mon, 7 Apr 1997, Marcos Lima wrote:

>
> Hi all,
>
> I would like know how to call a C program when my users log in
> my computer. The objective is: stop a user when he has oversteped
> his acess hours.

If he is "telnetting" to your computer, put the c program in his .login
script so it is executed as soon as he logs in, or make the C program his
shell. You can alter that in the /etc/passwd file.

~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
Jake Messinger 713-772-6690 jake@ams.com
Advanced Medical Systems, Inc. jake@uh.edu
Houston, Texas http://www.ams.com/~jake
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
(Betcha can't do this on an Apple ][, ][c, or ][e)