Tclsh script not working like I want it to...

Using this script, when I execute it, it stops at Erasing VLAN Database and sits there until I hit enter again, then it finishes the script and reloads the device. Thoughts on why?
tclsh
puts [open "flash:reset.tcl" w+] {
puts "Erasing Configuration"
typeahead "\r"
puts [ exec "write erase" ]
puts "Erasing VLAN Database"
typeahead "\r"
puts [ exec "del flash:vlan.dat" ]
puts "Copying Base Configuration To Startup"
typeahead "\r"
puts [ exec "copy flash:baseline.cfg nvram:startup-config" ]
puts "Reloading The Device"
typeahead "\r"
puts [ exec "reload" ]

Did you tried adding another carriage return?
typeahead "\r\r"
I tested your original script in a switch and it worked.

Similar Messages

  • I want to cancel my subscription,  I just signed up and the conversion did not work like I wanted.  Please cancel asap.  thank you

    I want to cancel my membership ASAP, this conversion did not work and I want a refund.  How can I do this.
    Stan

    Hi estans66,
    I have been cancelled your subscription on 13 Oct,2014.
    It takes 7 business days in refund processing.
    You can contact our chat support :http://helpx.adobe.com/x-productkb/global/service-b.html
    Regards,
    Florence

  • Button/UiLoader Code just not working like I want it to.

    Can anyone tell me why my forward button (next_btn3) isn't working?  I've got a uiLoader (printLoader) which loads three images.  Everything works fine, I can see the button but can't use it.  Thanks in advance.
    next_btn3.addEventListener(MouseEvent.CLICK, nextImage3);
    var imageNumber3:Number = 1;
    function checkNumber3():void{
    next_btn3.visible=true;
    back_btn3.visible=true;
    if(imageNumber3==3){
      trace(imageNumber3);
      next_btn3.visible = false;
      if(imageNumber3==1){
       trace(imageNumber3);
       back_btn3.visible = false;
    checkNumber3();
    function nextImage3(evtObj:MouseEvent):void{
    imageNumber3++;
    printLoader.source = "images/print_images/image"+imageNumber3+".jpg";
    checkNumber3();
    back_btn3.addEventListener(MouseEvent.CLICK, backImage3);
    function backImage3(evtObj:MouseEvent):void
    imageNumber3--;
    printLoader.source = "images/print_images/image"+imageNumber3+".jpg";
    checkNumber3();

    Thanks for responding.
    If I rename the back_btn instance to next_btn and the next_btn to back_btn and click the back button, this is the error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at david_fla::MainTimeline/nextImage()
    Any suggestions?

  • Code not working like I want

    I have two date fields, "StartDate1" and "EndDate1".
    When I make the EndDate1 value less than StartDate1, the "button" remains VISIBLE, but INACTIVE, and I can move on to the next field.
    Why does the button remain visible, why is the button inactive, and how do I force the user to enter an EndDate1 value greater than that of StartDate1?
    Also, in the Validate code, if I remove the line
    " else xfa.host.messageBox("It Works"); "
    then I get a syntax error, which I don't understand.
    Can someone help clean up this mess?
    Thanks,
    Bernie
    ----- F.P1.EndDate1::exit - (FormCalc, client) --------------------
    if ($.isNull ne 1) then
    var nDays = Date2Num($.formattedValue, "MM/DD/YYYY");
    if (nDays <= 0) then
    xfa.host.messageBox("Please enter the date in MM/DD/YYYY format.");
    xfa.host.setFocus($.name);
    endif
    endif
    ----- F.P1.EndDate1::validate - (FormCalc, client) ---------------
    var DCV
    if (HasValue(StartDate1) and HasValue(EndDate1)) then
    DCV = Date2Num(EndDate1, "YYYY-MM-DD") - Date2Num(StartDate1, "YYYY-MM-DD");
    // xfa.host.messageBox (DCV);
    if (DCV<0) then
    xfa.host.messageBox("End Date must be greater than Start Date");
    xfa.host.setFocus($.name);
    else xfa.host.messageBox("It Works");
    endif
    else $ = null
    endif

    Thanks for responding.
    If I rename the back_btn instance to next_btn and the next_btn to back_btn and click the back button, this is the error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at david_fla::MainTimeline/nextImage()
    Any suggestions?

  • HT1222 I can updat my ph ios7. Bt it has some prob, Like wifi or hotspot. Now i want to update it again, bt its not working. I want 2 update ios7 and ios 7.0.2.

    I can updat my ph ios7. Bt it has some prob, Like wifi or hotspot. Now i want to update it again, bt its not working. I want 2 update ios7 and ios 7.0.2.

    Okay, so update it.
    Frankly no one can offer assistance if no details about the problem are provided.

  • ACCEPT in SQL script not working

    G'day
    Why does the following use of the 'accept' keyword not work?
    I want a user to be prompted to either commit or rollback but it does not work in the following 'experiment'
    set echo on
    set termout on
    set feedback on
    update emp set sal = sal*2 where ename = 'SCOTT';
    accept action char prompt 'rollback or commit >'
    &action
    the following is what happens when i run the script:
    SQL> @temp02.sql
    SQL> set echo on
    SQL> set termout on
    SQL> set feedback on
    SQL> update emp set sal = sal*2 where ename = 'SCOTT';
    1 row updated.
    SQL> accept action char prompt 'rollback or commit >'
    rollback or commit >rollback
    SQL> &action
    SP2-0042: unknown command "&action" - rest of line ignored.
    Any suggestions appreciated.
    Tony

    Hi, Tony,
    Welcome to the forum!
    SQL*Plus looks at the first word of a statement before resolving substitution variables. (I don't know why; it resolves them regardless of what the command is.) At any rate, the first word of a command that SQL*Plus interprets has to be spelled out.
    "BEGIN" that starts an anonymous block counts as the first word, so you can take Andy's suggestion much further by simply saying:
    BEGIN
        &action;
    END;
    /@ also counts as the first word, so you could also have one-line scripts called commit.sql
    COMMIT;and rollback.sql,
    ROLLBACK;and then say
    @&action

  • My passbook on my iphone 5 works the same as it did for the iphone 4, its not working like it should. why?

    my pass book on my iphone 5 does not work like it should, it works just the same as it did on the iphone 4, i tryed the date an time trick like 5 times an still nothing. i tryed factory reset an nothing. i know it workds different on the iphone 5 then the 4. but i dont know what else to do.

    Can you be more specific about what isn't working?  Are you running iOS 6 or iOS 6.1?
    Did you read the support page on Passbook?  http://support.apple.com/kb/HT5483

  • Siri is not working like it should i ask it to play songs and it just says sorry i cant do that any ideas y

    siri is not working like it should i asked it to play songs and it just says sorry i cant do it any ideas y

    Debbie:
    deborahfromwindsor wrote:
    he advises restarting by inserting the OSX disc and pressing down the C button to reboot from there then selecting disk utility, hard disk and repair.... Does he mean me to hold down the C key on the alpha keyboard or the ctrl key?
    Should I just ask for my money back??? If it is a simple repair do I just literally push the disc in, push the power button and hold down the C button?
    That's where I would begin, too, with
    Repair Disk
    Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.TStatus of HDD at the bottom of right panel, and report if it saysanything but Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    If DU reports errors it cannot repair you will need touse autility like TechTool Pro,Drive Geniusor DiskWarrior
    First we need to determine if the issue you are experiencing with the computer is software or hardware based. Once we have gotten things sorted out there should be time enough to make you decision about keeping or returning it.
    cornelius

  • I have bought a IPhone 4 from Malaysia, my home button is not working. I want to replace the phone under warranty but all service centres mention that its country specific and I need to get it replaced only at malaysia. Can anyone guide me what to do????

    I have bought a IPhone 4 from Malaysia, my home button is not working. I want to replace the phone under warranty but all service centres mention that its country specific and I need to get it replaced only at malaysia. Can anyone guide me what to do????

    The iPhone warranty is not international and as you purchased in
    Malaysia the warranty is only valid in Malaysia
    You could try taking to an iPhone Authorised service provider
    in India but there have been many similar posts to yours
    and I am not aware  of them assisting  with an iPhone from
    outside India

  • I just installed Photoshop CC 2014, but Latest version of Bridge will not work when I want to open it from PS

    Any idea why is Bridge latest version not working when trying to open it in Photoshop CC 2014 ? (French version) ? When trying, Creative Cloud app will open to ask if I want to download newest version, which I did numerous times now.
    Thank you
    Guy Deschenes
    Shawinigan (QC) Canada

    Hi Eric,
    Here's how a similar problem was resolved between PS and BR.
    The issue was confirmed by ChunXiaYang at Adobe staff and solution put in the forum discussion on June 19 (no. 13). Here's a copy:
    I have confirmed that this is a known issue before release. And the workaround is to uninstall and reinstall PS 2014. Then Bridge can be launched by selecting 'Browse in Bridge' in PS2014.
    Please try the installation, and let me know whether it works. Thanks!
    It woks just fine since I unistalled and reinstalled PS 2014.
    Guy
    Le 2014-07-17 à 1:13 PM, ericboerner a écrit :
    I just installed Photoshop CC 2014, but Latest version of Bridge will not work when I want to open it from PS
    created by ericboerner in Bridge General Discussion - View the full discussion
    I did this with a fresh install of the entire CC package. As soon as the CC packages updated, CC Bridge broke. Unistalled CC PS, reinstalled again, CC Bridge works, but CC PS updates itself again, and breaks CC Bridge.
    You know... The whole move to CC has been a massive cluster... I've struggled with the CC packages for my entire subscription year, and now I'm 1.5 month away from needing to throw down another $720 for no reason what-so-ever, just so we can Beta test your really screwed up subscription services.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6559164#6559164
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Bridge General Discussion by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Why is my password not working when i want to update apps?

    Please tell me why my Apple ID is not working when i want to update apps?(just the purchased apps are not working).I now have an acount that dosen't have a card entered.

    For examle i have iGO primo and my password is not working (i already reset it).

  • I've updated to iso5 on my iphone 4 but some of the features are not working like the lock screen camera feature.  Have I done something wrong?

    I've updated my iphone 4 to ISO 5.  I could not connect to icloud yet however does this expalin why some of the features of ISO 5 are not working like the camera lock screen feature?
    Thanks
    C

    to see the camera icon, double-click the home button when you are on the lock screen. this will show the music controls and the camera icon. double click the home bgutton again to close them.

  • HT201303 Hi this is Sai I was trying to change my card details because my old card is not working so I want to change the details . So can you help me out please

    Hi this is Sai I was trying to change my card details because my old card is not working so I want to change the details . So can you help me out please ..
    <Edited By Host>

    These are user-to-user forums, you are notalking to Apple here - I've asked the hosts to remove your email address from post.
    Are you not able to log into your account and change your account details e.g. via Store > View My Account on a computer's iTunes ?

  • How i can back up my i phone ore restore back up if it keeps to say password is wrong. i tried every possible psw ds does not work. now i want to change the password it wants old pswd and i do not know it. what can i do?

    how i can back up my i phone ore restore back up if it keeps to say password is wrong. i tried every possible psw ds does not work. now i want to change the password it wants old pswd and i do not know it. what can i do?

    Sorry, but if you have forgotten the password for your encrypted backup, you'll have to start all over again:
    Make sure that the password you use is one that you'll remember. If you encrypt an iPhone backup in iTunes and forget your password, you won't be able to restore from backup, and your data will be unrecoverable.
    If you can't remember the password and want to start again, you must perform a full software restore and choose set up as a new device when iTunes prompts you to select the backup from which to restore.
    copied from Create and delete iPhone, iPad, and iPod touch backups in iTunes

  • Iphone 4s Running Ios(7.1) Camera Focus Not Working Like Text On book It Showed Blurey Text & My Friend Also Same Modle His Camera Focus Perfectly..Is Is Possible To Fix It...Thnx Every 1

    Iphone 4s Running Ios(7.1) Camera Focus Not Working Like Text On book It Showed Blurey Text & My Friend Also Same Modle His Camera Focus Perfectly..Is Is Possible To Fix It...Thnx Every 1

    Hello SajidChaudhary,
    Thanks for using Apple Support Communities.
    For more information, take a look at:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    Camera isn't functioning or has undesired image quality
    If the screen shows a closed lens or black image, force quit the Camera app.
    If you do not see the Camera app on the Home screen, try searching for it in Spotlight. If the camera does not show up in the search, check to make sure that Restrictions are not turned on by tappingSettings > General > Restrictions.
    Ensure the camera lens is clean and free from any obstructions. Use a microfiber polishing cloth to clean the lens.
    Cases can interfere with the camera and the flash. Try gently cleaning the lens with a clean dry cloth or removing the case if you see image or color-quality issues with photos.
    Try turning iPhone off and then back on.
    Tap to focus the camera on the subject. The image may pulse or briefly go in and out of focus as it adjusts.
    Try to remain steady while focusing:
    Still images: Remain steady while taking the picture. If you move too far in any direction, the camera automatically refocuses to the center.
    Note: If you take a picture with iPhone turned sideways, it is automatically saved in landscape orientation.
    Video: Adjust focus before you begin recording. You can also tap to readjust focus while recording. Exiting the Camera application while recording will stop recording and will save the video to the Camera Roll.
    Note: Video-recording features are not available on original iPhone or iPhone 3G.
    If your iPhone has a front and rear camera, try switching between them to verify if the issue persists on both.
    Have a nice day,
    Mario

Maybe you are looking for

  • Installation of oracle9i2 on redhat advanced server

    I installed linux advanced server3.When i try to install oracle9i2 when i am running the runinstaller i am getting these errors initialising java virtual machine from /tmp/orainstall /jre/bin/java please wait /jre/bin/.386/native_threads/java.. error

  • How to Perform Java Vector Difference?

    Hello All, I need some help for Difference Between 2 Vectors Implementation I have written a short program to explain what I exactly one.. BasicallY I am looking for a method that returns a Vector containing the elements of vect1 minus the elements o

  • While playing a game, how do you turn the volume down???

    Sorry for the newbie question.  Thanks for the help!

  • I canu00B4t see de PR in the EPRTRANS Table in the scenario Plan Driven Procur

    Hi, We want to transfer PR from R/3 to SRM. We have customize the Plan driven Procurement, but we can´t see them in the EPRTRANS table. The Release Strategy has been completed in the PR. Releases: R/3 6.0,  SRM  5.5 Any help please?

  • Inter company  return  PO- Error

    Hi , We have intercompany purchasing process which is working fine.  But When I am  trying  to create  the  Return purchase order through   ME21N and checked the line item  box as Return  for  the same item ,u2026getting an  error message  as  follow