Create a login script?
I want to have a user setup on this bsd box I am building so that when a certain user logs in that user automacilly telnets into another server via a script. This machine is going to be replacing a Dumb terminal and I want it to look as seamless as possible.
|
Ok so I think I have to edit the file .login for that user and put the commands in there, could someone post me some syntax example to open a telnet session? Also is there anything that needs to be done to tell the os to use the .login script or is just its presence enough in the users home directory?
|
Ok so I think I have to edit the file .login for that user and put the commands in there, could someone post me some syntax example to open a telnet session? Also is there anything that needs to be done to tell the os to use the .login script or is just its presence enough in the users home directory?
|
Well, you are going to want to set the user's shell to tcsh (that way you know it will be run). And it won't be seamless... they will be prompted for a password twice.
|
Maybe you could use perl in the login script to activate a telnet or access DB before telnet. like...........
system "telnet -E 192.9.1.254"; |
All times are GMT -5. The time now is 06:18 AM. |