[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Passing parameters to a telnet session?

On Mon, 2003-08-04 at 13:48, Marc Shapiro wrote:
> Does anyone know if there is a way to pass a parameter to a telnet session?
> I have set up a user on one box that does not require a password to log 
> in.  I telnet to his account from another box using:
> 	telnet hostname -l username
> I want to be able to pass a parameter of some kind, or set an 
> environment variable that I can test in .bash_profile and determine the 
> specific action to be taken depending on its value.  Is this possible, 
> or am I barking up the wrong tree?

This is pretty vague, you want to test a variable from the client system
or the host system? Who should take an action? The easiest way to make a
non-interactive telnet session "do something" is to change the login
shell to (for example) /home/username/do_something.sh instead of


Reply to: