Search Results

Search: Posts Made By: trinak96
16,664
Posted By trinak96
Best Regards to you...Thank You.
Best Regards to you...Thank You.
16,664
Posted By trinak96
Your are star, that's solved it. obviously i need...
Your are star, that's solved it. obviously i need more research on passing arguments !!

Many thanks again, superb...
16,664
Posted By trinak96
OK, first change didn't accomplish anything. ...
OK, first change didn't accomplish anything.
Second change, calling via /usr/bin/expect<expectscript> ipadd, with trace running outputs:

~/Scripts$ ./get-int
+ read ipadd
+ echo 10.33.220.12...
16,664
Posted By trinak96
Yes, that's the error I posted originally. It's...
Yes, that's the error I posted originally. It's the spawn telnet $device command which works when run with manual IP but fails when called from control script.
16,664
Posted By trinak96
Correct, running with manual IP argument works. ...
Correct, running with manual IP argument works.
Output from run with trace :
/Scripts$ ./get-int
+ read ipadd
+ echo 10.33.220.12
10.33.220.12
+ export ipadd
+ sh ./list-int 10.33.220.12...
16,664
Posted By trinak96
Thanks for quick response dude2cool, have done as...
Thanks for quick response dude2cool, have done as suggested but same error i'm afraid.
16,664
Posted By trinak96
Calling Expect Script - Telnet
Hi All,

I have an Expect script which logs into Cisco switch, performs a show interface command. I want to read a file of ip addresses which will be passed to the expect script.

The script to...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 11:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy