On Tue, 12 Jan 1999, Omer Ansari wrote:
> Hi,
>
> one question: I want to automate some telnet processes.. that is, I
> want to
> telnet
> into some machine and upon Login: i would enter login, upon password: i
> would
> enter
> the password...something like 'transmitting strings + <cr> whenever i
> receive
> something i anticipate:
>
> if i ask the scripts to anticipate login: , i send the login ID plus a
> carriage
> return to execute it.
> then when i get password: i transmit the password plus the <cr> to
> execute
> it.
>
> once logged in, i would want to carry out some commands like this...
>
> Is it possible for me to do so by bash scripting? could anyone point my
> nose
> towards the
> bakery if so?
>
Have a look at expect - it was written precisely for this sort of thing,
although I've never used it. Also, it might be worth looking at ssh
and/or rsh which enable you to easily run stuff on remote machines.
HTH
--
Mike <[EMAIL PROTECTED]>
A Fortran compiler is the hobgoblin of little minis.