Re: scripted rlogin help In article <c6c06n$9fp$1@sparta.btinternet.com>, Jon wrote:
> Thanks for the replies - I will be investigating the use of Expect for some
> testing and currently getting Tcl installed.
>
> However, this still doesn't truly answer my question. Regardless of
> user/security etc as these are not an issue I need
> to test the rlogin and telnet commands - that is, I need to automate - in
> a script - access to a unix box using the specific commands
> of rlogin and again test using the specific command telnet. I therefore need
> a way of passing user and password to these commands in a way
> that one might with scripted ftp.
>
> I understand that suggested methods are valid but not for the specific
> testing that I need to do with these commands.
> I am attempting to mimic a real-life situation for some software being 'hit'
> by lots of 'people' either rloging or telneting into
> a unix box (quotes used as I am running a lab-test rather than getting
> customers to do it for real!)
>
> I just need a simple way of scripting rlogin an telnet as they come on the
> box but for some reason the way to do this seems to be lost on me.....
>
> Thanks again,
> Jon
>
-snip-
Jon,
You need 'expect'. It will run the actual telnet or rlogin commands however
you desire to script them. Telnet is not scriptable otherwise, although it is
possible rlogin is.
If you haven't yet learned about expect, you should do some reading before
making further requests on this topic, as you have already been given the
answer more than once.
Kevin |