Script times out on a line, why? anybody?

I have the following script that gives me an error as it times out.
repeat -- forever
display dialog "Email backup and KNAB backup
is about to commence,
do not use Email or KNAB till further notice!" buttons {"Cancel", "Wait", "OK"} cancel button "Cancel" default button "OK" giving up after 300 -- 300 = 5 minutes after which the it auto OK and runs
set {TheButton, GaveUp} to {button returned, gave up} of the result
if (TheButton is "OK") or GaveUp then
exit repeat
else
delay 180 -- the number of seconds to wait
end if
end repeat
--Backup started
delay 2
display dialog "Email backup is now running;
do not use your Email till further notice!" buttons {"OK"} default button "OK" giving up after 5
-- runs the backup stuff
tell application "Jiggler" to activate
tell application "Microsoft Office Notifications"
quit
tell application "Microsoft Entourage"
quit
tell application "FileMaker Pro"
quit
end tell
end tell
end tell
delay 2
set submitfolder to "Data E: ChronoSync Saved sets:Eric MBP:Email:" as alias -- path to folder containing file you want to run
tell application "Finder"
open (every file whose name contains "Email Backup E>E") of folder submitfolder -- name of file you want to run
tell application "System Events"
tell application "ChronoSync" to activate
keystroke (ASCII character 29) using command down -- Synchronise command
delay 240 -- put time needed, email backup usualy needs 260 seconds
tell application "ChronoSync" to activate
keystroke (ASCII character 3) -- return = OK
end tell
end tell
delay 5
tell application "ChronoSync"
quit
end tell
-- Email finished
display dialog "Email backup is now finished;
feel free to mail again!" buttons {"OK"} default button "OK" giving up after 9
delay 2
-- KNAB starting
display dialog "KNAB backup is now running;
do not use your KNAB till further notice!" buttons {"OK"} default button "OK" giving up after 10
delay 2
tell application "TrueCrypt" to activate
tell application "Finder"
set Disk_Name to name of every disk
if Disk_Name contains "KNAB" then
delay 3
tell application "System Events"
tell application "TrueCrypt" to activate
delay 2
key code 120 using control down
delay 2
key code 125 --down arrow
key code 124 --right arrow
repeat 1 times
key code 124
end repeat
delay 1
repeat 3 times
key code 125
end repeat
keystroke (ASCII character 13)
end tell
delay 25
tell application "TrueCrypt"
quit
end tell
end if
end tell
delay 5
set submitfolder to "Data E: ChronoSync Saved sets:MBP:" as alias -- path to folder containing file you want to run
tell application "Finder"
open (every file whose name contains "backup E>E") of folder submitfolder -- name of file you want to run
tell application "System Events"
tell application "ChronoSync" to activate
keystroke (ASCII character 29) using command down -- Synchronise command
delay 40 -- put time needed, icon backup usualy needs 40 seconds
tell application "ChronoSync" to activate
keystroke (ASCII character 3) -- return = OK
delay 5
tell application "ChronoSync"
quit
end tell
end tell
end tell
-- if there is a mail message being send use this to quit mail
delay 7
tell application "Mail"
quit
delay 1
tell application "TrueCrypt"
quit
end tell
end tell
tell application "Jiggler" to quit
-- dialog to tell KNAB is finished
delay 2
display dialog "KNAB backup is now finished;
feel free to use KNAB again!" buttons {"OK"} default button "OK" giving up after 30
the time out happens on
-- Email finished
display dialog "Email backup is now finished;
feel free to mail again!" buttons {"OK"} default button "OK" giving up after 9
And I am not sure why. any help?

Most of these apps I don't have, so I can't run the script. Generally though, to avoid a timeout error, you should use a "with timeout of" control statement.
<pre class="jive-pre">with timeout of ### seconds
-- your calls taking a long time here
end timeout</pre>
You can use any number between "0" and "8947848" to indicate the number of seconds to wait before displaying a timeout error, or you can use "-1" to signify no timeout.

Similar Messages

  • Lock time out; try later.: Why it occurs

    Hi ,
    I m trying Insert_update_delete tutorial with my tables
    when i create Page2.jsp with Update buttons on Page1.jsp when i deploy it it gives me followin exception .
    No errors are there in bean files how do i Trace it?
    CAN ANYBODY HELP COMING OUT OF THIS????
    Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
    Exception Details: javax.faces.el.EvaluationException
    javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'signon.Page1'.. class signon.Page1 : javax.faces.FacesException: java.sql.SQLException: Lock time out; try later.
    Possible Source of Error:
    Class Name: com.sun.faces.el.ValueBindingImpl
    File Name: ValueBindingImpl.java
    Method Name: getValue
    Line Number: 206
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Regards !!!!!!
    Priya

    Hi Priya,
    There are a few reasons this kind of error can occur - typically it's because a rowset didn't get closed for some reason. If you're using pointbase, this can happen pretty easily because the number of connections that are supported is very low etc. Check your server.log file to see if there is any additional information - the error stack presented in the browser sometimes doesn't hold all the information. It's difficult to diagnose with just the information you have provided here. I can't tell if it's a table that's locked or the entire db.
    If this problem is occuring in Pointbase during your development, the way to clean it up is to restart pointbase and the appserver.
    A few scenarios where this problem can occur (yours might be the first one):
    1) could be an issue w/inserts... we are thinking we might want to revise the tutorial here... instead of :
      rowset.execute();
      rowset.moveToInsertRow();
      rowset.updateObject("FOO", new Integer(0));
      rowset.updateObject("ID", getNextId());try instead constructing the insert manually, something like:
    Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup(blahblahrowset.getDataSourceName());
    Connection c = ds.getConnection();
    c.setAutoCommit(false);
    Statement stmt = c.createStatement();
    int count = stmt.executeUpdate("INSERT INTO person (PersonID, Name, JobTitle) VALUES ((SELECT (MAX(PersonID)+1) from Person), 'The New Guy', 'new guy title')");
    // you can verify count is 1 here, but really its not necessary as a SQLException will be thrown if something went wrong - just make sure you close in the exception handler as well
    stmt.close();
    c.commit();
    c.close(); Also note that "getNextPK" approach in the tutorial is just a quick and dirty approach - you should probably use identity columns or perhaps the MAX approach shown in the code above... if you do use an identity column, you would remove the id column from the insert statement and let the db handle it.
    2) An exception is thrown in your application and therefore it is skipping the afterRenderResponse method which contains the close statement
    Solution: Avoid throwing exceptions - and if you must throw an exception, make sure to close the rowset before throwing.
    3) If you put a rowset in the session or application bean, you might be holding a lock on the table somewhere
    Solution: Avoid putting rowsets in Session and application beans - if you must access the database in those beans, close the rowsets as soon as possible - ideally don't just leave them open. If you must hold them open for extended periods of time. be aware that your pages may not be able to access those tables via direct binding.

  • Script Time out issue

    I see lots of comments about how to set the script Timeout to greater then 15 seconds. 
    They say to go to fla and hit ctrl shift f12.  I can not even figure out what fla is.  I have searched and searched.
    I know I do not have an infinite loop, the app runs when the data is smaller.  This only started happening when I moved to using something like 40k records.  So, with that said, would someone please explain to me how to exend the script timeout like I was a forth grader?

    That’s for Flash, not Flex.  For Flex, you can use the scriptTimeLimit property on the Application tag, but it already defaults to the maximum (60 seconds).
    The FlashPlayer stops running code after that time limit, even if your code would have finished a fraction of a second later.  This means that heavy processing may not complete.  You may have to use pseudo-threading to guarantee completion.  See: http://blogs.adobe.com/aharui/2008/01/threads_in_actionscript_3.html
    Don’t forget that, even though it might take 30 seconds on your computer, if the user’s computer is slower or busy that 30 seconds can grow enough to time out.

  • Session Time out or script Time out

    Hi Guys,
    Can someone advise me here.
    I have a form that asks several questions, Im using DW and an
    access database, this all works....BUT
    Some users seem to take a long time to fill in the form and
    they get an error and i think its as their session has timed out..
    When I used DW to make my log in page it added
    Server.ScriptTimeout = 90
    Is this the code i need to adapt to lengthen time for the
    user?
    Any support is very welcome.
    Thanks

    Thank you I will give it a go,
    I wasnt sure if I was using 'session script timeout 'if i
    could use 'session timeout' too.
    Is there any particualr place on my page I should use the
    'session timeout'.?
    Say I have it on the log in page....when the user goes to my
    form to fill it in will I also need to add the session timeout on
    the forms page to, or will it be enough to have set this when
    logging in?
    Thanks again
    Tag

  • Script Time out error in classic asp

    Hi ,
    In classic asp , i am using Stored procedure to fetch the result from oracle database . my database have 85Lakhs records . approx. 30 records are being inserted into the table. at the same time some users trying to fetch the data from same table.now i am getting script timeout error after long wait .it was an intermittent issue (sometimes it is working and sometimes it is not working). i thought it was because of performance issue with stored procedures . but in oracle Readers cannot block writers and Writers cannot block readers.so no issues with database side.i couldn't replicate the issue . i am wondering what will be the rootcause for this issue. is there anything i need to modify with the script side.by increasing the timeout property is the only solution?i tried to modify the timeout property to 180 seconds in classic asp page. please give your valuable suggestion.
    Thanks.
    Regards,
    Boss

    Hi,
    How big is your EJB application? i.e. how many EJBs do you have?
    Would you please try to deploy your application using the command line tool "asadmin" and see if it is also hanging? This will help us to tell if the deployment process that is hanging or the deploytool itself that is hanging. The "asadmin" tool is located under $INSTALL_HOME/bin.
    Thanks,
    Q^2

  • Script Time Out in E-Tester

    I have recorded a script and can go to the website and complete the event with no problems. When I playback the same script in e-tester, it will load the physical page but will not completely load it so it finally will timeout and fail to continue. I have tried just about everything. Anythoughts?

    Thank you for your help. If at all possible maybe you could provide me
    some information on the snapshot scenario. Here is a little more detail
    on what is happening.
    I am on a page and I click next to go to the next page and a "Please
    Wait while we process your request page" comes up (but is never recorded
    as a separate page). When the following page loads I can continue on
    like normal.
    On playback, it clicks next, I see the Please Wait page, then the
    following page shows up on the screen but it will never fully load and
    will eventually timeout even though I see the page on the screen that it
    is suppose to stop at. Do you think the please wait page may be causing
    an issue? I have tried to different events and it does the same thing on
    each event.
    Thanks
    Tim Phillips
    Senior QA Analyst
    904-594-0354
    [email protected]

  • Help -- Script timing out during http event listener

    So, I have created an HTTPService to retrieve an XML file. The event listener is basically just parsing that XML file and doing another necessary calculation. Unfortunately, the script times out because while small in size, there's a lot of data in it.  I know there's a way to override this with the compiler, but this doesn't seem like a smart thing to do. What are other solutions?
    I need the XML data to be loaded when the Flash player loads because it basically displays graph data that people need to be able to see as soon as the page finishes loading.
    Thanks so much for you input. I didn't anticipate this timeout problem!

    I changed my code to use the URLLoader(), not that it would resolve the problem, but maybe it's the preferred way to do this?
    Project Overview (that's relevant):
    The XML data is a bunch of numbers that I need to display on a graph as soon as the page is loaded. So, it must be parsed and obviously remapped to the height of the panel.
    The mostly relevant code:
    // openXML() is being called by my controller, which is called by my application's initialize
    public function openXML():void {       
                var loader:URLLoader = new URLLoader();
                loader.addEventListener(Event.COMPLETE, loadXML);
                loader.load(new URLRequest(xmlURL));
    private function loadXML(evt:Event):void {
                trace("start");
                var xml:XML = new XML(evt.target.data);
                // setup all <R> (Reading) tags as an xml list
                xmlList = xml.R;
                for (var i:int=0;i<xmlList.length();i++) {
                    value[i]=xmlList.v[i];
                // each value will then need to be remapped to fit the panel
                // call the gsrController -- which will in turn draw all this stuff       
    So the problem is, I'm new to Flex, and the lack of multithreading seems to be hurting me? I would LOVE for a way for the openXML() file to be able to return the xmlList so that I can take all of that logic OUT of that event listener, which is the way it should be. But how could I do that? I don't think that I can tell openXML() to wait on that event listener before it returns anything - haha.
    When I was testing this stuff a few days ago, everything was working perfectly, it was when I used data that corresponded to 40 minutes worth of video that it became a problem!
    (And to provide a better overview of what I'm doing, the XML data is for drawing this line that the video player ticker is syncing up with as the video plays......)

  • Changed to WPA2 - PC times out on auth - how do I fix this?

    I upgraded the security setting on my router yesterday to WPA2 and reconnected four computers/devices to the network using the new settings.
    The fifth machine keeps getting as far as Authenticating with the network and then times out.
    This machine is  a Dell PC and the wireless network is managed by the Dell Wireless WLAN Card Utility. The diagnostic log shows every one to three minutes that it is
    Connecting to my network
    Using "WPA-PSK" authentication mode
    Driver status - "Key exchange"
    Supplicant status - "Authenticating"
    Authentication time-out.
    Any idea why this might be occurring, and what I can do to get the connection to stay active/connected and successfully authenticate?
    Thanks,
    Sharon

    Are you certain the PC is using WPA2?  Have you tried to update the wireless drivers maybe its a known issue and is fixed in a later driver.  Are you certain you are using the correct key?

  • BPEL process times out after 5 minutes

    Hi,
    I have created a BPEL Asynchronous process that is invoking a view which takes time to give all the records; while the process is invoking this database adapter, my process abruptly ends with the following fault after 5 minutes
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'CAMPAIGN_BATCH_COUPONS_VSelect' failed due to: DBReadInteractionSpec Execute Failed Exception. Query name: [CAMPAIGN_BATCH_COUPONS_VSelect], Descriptor name: [CAMPAIGN_BATCH_COUPONS_V.WcCampaignBatchCouponsV]. Caused by java.sql.SQLTimeoutException: ORA-01013: user requested cancel of current operation . See root exception for the specific exception. This exception is considered retriable, likely due to a communication failure. Because the global transaction is rolling back the invoke must be retried in a new transaction, restarting from the place of the last transaction commit. To classify it as non-retriable instead add property nonRetriableErrorCodes with value "1013" to your deployment descriptor (i.e. weblogic-ra.xml). ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    It looks like my process is timed out. Is there anything that I can do for it to not time out like this?
    Can anybody please help me on this?
    Thanks in advance.
    Edited by: user1165407 on Sep 6, 2011 4:19 PM

    Hi Naresh,
    Before the transaction was rollback issue it got failed while invoking the DBAdapter and it is showing the below issue:
    Can you please look into this and let me know if any thing required and we pass the payload by standalonely through EM Console it is working fine.But normal order processing it is showing the below error.
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'update' failed due to: DBWriteInteractionSpec Execute Failed Exception. update failed. Descriptor name: [insertSiebelOrder.OeSblOrders]. Caused by java.sql.BatchUpdateException: ORA-01013: user requested cancel of current operation . Please see the logs for the full DBAdapter logging output prior to this exception. This exception is considered retriable, likely due to a communication failure. Because the global transaction is rolling back the invoke must be retried in a new transaction, restarting from the place of the last transaction commit. To classify it as non-retriable instead add property nonRetriableErrorCodes with value "1013" to your deployment descriptor (i.e. weblogic-ra.xml). ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    Let me know if any thing required.
    Regards,
    Raj.

  • Sending files by mail - time out?

    When I send emails with attached files, larger than appr 2 MB, I cannot send the email.
    My IT provider says it has to do with a Time out setting by Mac? Anybody know how to fix this?
    //L

    Try using traceroute and ping. Use them to check the connection speeds between the source and destination computers. You can easily do this by using the tools in the Network utility, which is in the Utilities folder.

  • Diagnosctic and Recovery Task Time Out

    Hello,
    I'am creating a recovery task witch wil do a shutdown of my envirement when the temperature in the datacenter is above 30 degrees Celcius. When I did a test a run found out that the timeout option in the Recovery task pane isn't working.
    My settings are:
    Timeout Setting in the Diagnostic and Recovery Properties
    The VBS script is Run to start a Powershell Script:
    Option Explicit
    Dim objShell
    Set objShell = CreateObject("WScript.Shell")
    objShell.run "powershell -noexit -file D:\Scripts\testscript.ps1",4,true
    The Powershell Script that is called by the VBS Script. This is not the powerdown Script but a Timeout Test Script
    import-Module "d:\scripts\Functions\Currenttime.ps1"
    $Logfile = "D:\Log\Timeouttest.ps1.$logfile.txt"
    Start-Transcript -Path $Logfile > $null
    Write-Host (CurrentTime)" - Start Logfile"
    do {
    $Value++
    if ($Value -eq 1)
    Write-Host (CurrentTime)" - Start Waiting"
    else
    write-host (CurrentTime)" - Time out + 30 Seconde"
    sleep 30 #1800
    while (
    $Value -ne 21
    Stop-Transcript > $null
    The Function that is imported in the powershell Script.
    Function CurrentTime
    (get-date).toString('yyyy.MM.dd hh.mm.ss')
    When I generate the a alert and the Recovery task is started the scripts times out after 5 minuters. When I run the same scripts whitout System Center Operations Manager then everything works.
    Hope someone can help me
    GRz
    Roelkn
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Hi Chunky.1
    Thank's for the link that was the solution for my problem
    Grz Roelkn
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Possible to use both optical out AND regular line out at the same time?

    I currently have my computer speakers (logitech z560) hooked up to the mac pro via regular stereo jack in the back. I have an extra receiver that I would love to hook in to supply me with some needed sound for movie watching and what-not.. Is there a way to enable both line out - digital and line out at the same time?

    You can set DVD Player's "Audio output" to "Digital Out" in its "Disc Setup" preference, while other applications use Line Out.
    You could use a splitter on Line Out to feed your current speakers, and analog Line In on your receiver. When you want sound to both systems, set the receiver to Line In. When you want to watch DVDs, set it to Digital In. This will give you surround sound if the DVD has multichannel sound, and the receiver supports more than two channels.
    If you really want the same output on the Mac Pro Line Out, and Digital Out, you can use the "Auxiliary Device Output" effect in Audio Hijack Pro
    <http://www.rogueamoeba.com/audiohijackpro/>
    It will not support more than two-channel audio.

  • 9 times out of 10 I have to force-quit to get out of my g-mail. This only happens only on my i-Mac, never on my Macbook pro. Can anybody help ?

    MAX OS X - version 10.7.5 :
    For some weeks now, I have to force-quit 9 times out of 10 to get out of my e-mail account (g-mail). This only happens on my i-Mac, never with my other devices (Macbook Pro, i.Phone, i-Pad).
    Does anybody know what could be the reason for this ?
    Thanks

    OK, you have iMovie 08, which is also known is iMovie Version 7.1.4. It has been a few years since i used this version, so this is based on memory.
    The only components you must have in the Library/QuickTime folder are the AppleIntermediateCodec.component and the AppleMPEG2Codec.component.
    All the others could potentially be causing problems. I would drag the DivX components, the Flip4Mac components, and the Google Camera components to the Desktop temporarily, so nothing is left in this folder except the two Apple components.
    Then restart your Mac and start iMovie. If it works, yay!
    If you still need these other components for some other app, you can probably get updated DivX components for free at Perian.org.
    You can get updated Flip4Mac components by running WMV Player and updating. It should prompt you to update automatically.
    I am not sure about the Google components, but if you are running something that needs them, it should prompt you to install the current versions.
    If none of that works, post back.

  • HT1338 Why do I get so many "time out" connection problems?

    I keep getting "time out" connection problems when I am on computer.  I am also experiencing a lot of "spinning wheeling" issues.  Are they related?

    Hi Garima,
    These are the three I use and I get 1 or 2 updates a day on most days....why?
    Best regards,
    Haye Kesteloo
    ServiceSpider, LLC
    100 Mill Plain Road
    Danbury, CT 06811
    Cell: +1 203 522 6727
    www.servicespider.com

  • Why does firefox time out so often? slows down my working

    Why does firefox time out so often. I can be in the middle of something and it just stops. did it as I am trying to write this note. very frustrating! It either times out or freezes. the former happens more often. I can be on the web or on yahoo mail.

    The default of the pref network.http.max-connections has been increased from 30 to 256 in Firefox 6+ versions.
    Try to decrease the value of the pref <b>network.http.max-connections</b> from 255 to a setting like 30 as used in Firefox 3 versions.
    *https://support.mozilla.com/kb/Firefox+never+finishes+loading+certain+websites
    See also:
    * http://blog.bonardo.net/2011/09/30/is-your-firefor-freezing-at-regular-intervals
    * Places Maintenance: https://addons.mozilla.org/firefox/addon/places-maintenance/

Maybe you are looking for

  • Problems running applet in web.

    Im trying to publish a game made using applet. The server runs normally, and the client shall be accessed by browser. I've already signed the applet, which was being required. Im running the server under linux ( ubuntu ), and the Jar file have read p

  • How to send local e-Invoicing format as Idoc

    Dear sirs, I would like to ask you about a translation of a local e-inv format into the Idoc. What are the problems: - this standard was published by a local government and probably is not compatible in any other format used by "ordinary" (adn sane)

  • String replace

    String has a replace method for chars, something the likes of String replace(char a, char b) I tend to think it would be nice to ammend String further with String replace(String a, String b) proponents/opponents? It seems like a nice thing to have.

  • Retreiving a value from and SQL query

    If anyone can give me sample code or pointers to retreive a value from an sql query, I'd be greatful. Source code I've muddled together so far: Class seqNumType = Class.forName(nameOfClass); Constructor theConstructor = seqNumType.getConstructor(null

  • Defaulting long text in fmbbc

    Hi to all experts, I have requirement of defaulting long text in transaction FMBBC . when the user clicks on long text button some text should be defaulted is it possible. Im thinking of using enhancement points to achieve this .