Advertisement

09.07.2008 at 09:37AM PDT, ID: 23710308 | Points: 250
[x]
Attachment Details

Expect scripting, passing file list to send command

Asked by GR999 in Bourne-Again Shell (bash), Shell Scripting

Tags: ,

Hello All,
I am trying to write a simple (I think) Expect script to log into a router and change an access list. The access is quite large and the content changes daily, mainly the IP address. I would like to have the script load the list using just one send command after the intial login. I'm somewhat new to scripting, maybe I'm going about it all wrong?  The way I was looking was for Expect to read the least, maybe in a for loop, and send each command inidividually. Any ideas? Start Free Trial
[+][-]09.08.2008 at 01:46AM PDT, ID: 22415518

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.08.2008 at 07:38AM PDT, ID: 22417803

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.08.2008 at 07:46AM PDT, ID: 22417885

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.08.2008 at 01:39PM PDT, ID: 22421296

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.09.2008 at 01:19AM PDT, ID: 22425118

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628