Plain shell scripts aren't good at controlling dialogs over socket
connections. I hesitate to say they cannot do it, since there are people
here more skilled in shell scripting than I, but doing it directly won't be
trivial.

I'd do it one of these ways:

        1. Write it in perl, which has a Telnet module

        2. Use the "Expect" package from a shell script; this manages
                telnet-like dialogs.


At 11:02 AM 8/11/00 -0700, Gregory D. Burns wrote:
>Hi,
>
>    Does anyone know how I could make a script that telnet into a router
>did a some commands, log the results, and then moved to the next router.
>I'm trying to write a little shell script that will add a ip address to
>a access list in 5 different routers. If you have any suggestion please
>let me know.


--
------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA                                    [EMAIL PROTECTED]        
----------------------------------------------------------------


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to