Running a multiline shell command
bobs at twft.com
Mon Dec 12 13:48:36 EST 2011
I am using Snow Leopard. Yes there is an expect command. I just read the man page for it. WOW! There is a lot there. From what I gather, I can create a file that contains all the responses I will be presented with, and expect will respond to those prompts accordingly.
Now I did succeed once in pasting this into the tsch terminal window and I got exactly what I wanted, but subsequent attempts tell me I am using the wrong password. I suspect the wrong line endings at this point. I will look into that.
On Dec 10, 2011, at 10:23 AM, Mark Wieder wrote:
> Friday, December 9, 2011, 6:50:27 PM, you wrote:
>> The goal is to get the mac address table from a Procurve managed switch. Any ideas?
> What OS? Do you have an "expect" command available?
> -Mark Wieder
> mwieder at ahsoftware.net
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode