Answering prompts in command scripts
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-25-2013 10:48 AM
Attempting to cancel reset through a command script. Although this issue could potentially happen when answering any yes/no prompt. Script: set length 0 reset cancel @receive 2 @key y @endofline crlf show reset exit Result: K6(su)->set length 0 K6(su)->reset cancel This command will cancel 1 scheduled reset. Do you want to continue (y/n) ?yshow K6(su)-> K6(su)->
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-25-2013 04:53 PM
That works. I don't know why I did not try that. Thanks!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-25-2013 04:44 PM
Hi Jeff, Try this: set length 0 reset cancel y show reset exit Result: SSA->reset cancel This command will cancel 1 scheduled reset. Do you want to continue (y/n) ?y Reset cancelled. SSA(su)->show reset No Reset scheduled SSA(su)->exit By putting the different commands on different lines I believe it implied a newline at the end.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-25-2013 03:17 PM
I am attempting to cancel a scheduled reset on several switches. I am assuming that in attempting to do anything else that asks for a y/n answer would have the same issue.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-25-2013 01:06 PM
Hi Jeff, Maybe you can give us a little bit of commentary here. What exactly is the problem you are trying to resolve?
