Run method every X seconds

Hi all,
I have a method that I would like to run every 200ms from a JSP page. I figured this was more related to Java programming than JSP, so I'm posting here. Let me explain why.
I have an application that captures a still image in the form of a byte[] from a video camera (capturing the video feed is not an option; it can only capture a still image from the camera). I then convert the byte[] to an RGB image and display that image on a webpage using JSP. I would like this image to be updated on the JSP page at a frequency of 5Hz, or 200ms. To do so this, I figured I'd need to call my getRGBImage() method every 200ms and consequently call the ImageIO.write(...) method. This brings me to some questions.
1) Can this even be done? Is 5Hz too fast for all of this to execute?
2) If this can be done, how would I go about doing this? Is there a better way than calling a method every 200ms? Should I use Timer? If so, how would I use it? I read the API, but I don't see how I can apply it.
If I need to post any code or whatever, please let me know.
Thanks,
Dan

Yeah, you would use the Timer in the applet. I assume
the applet would need to connect to the server and
get the latest version of the image at each tick of
the timer.I can have an ongoing connection with the server, I just need to call the method to retrieve the image data multiple times. The server provides me with a method, imageAcquisition, that I call with
byte[] in = imAq.imageAcquisition; //imAq is the server proxyTherefore, I shouldn't need to initialize a connection to the server every time I want to retrieve the image data.
Anyway, that solves my general problem, so any more-specific problems related to applets/timers/etc I'll put in a new thread.
Thanks again,
Dan

Similar Messages

  • System process running queries every 25 seconds against SQL 2012 Developer Edition

    While debugging a long running stored procedure I wanted to include SP:stmtStarting and SP:stmtCompleted.
    I noticed that every 25 seconds I was getting multiple queries against every database on my local server like:
    select table_id, item_guid, oplsn_fseqno, oplsn_bOffset, oplsn_slotid
    from [dbname].[sys].[filetable_updates_random_number] with (readpast) order by table_id
    From different sid's each time.
    While searching I saw that sometimes this may had to do with always on availability or filestream support but this is not my case since I don't use any of these features. This is a single instance installation.
    The following queries return no rows.
    SELECT * FROM sys.filetables;
    GO
    SELECT * FROM sys.tables WHERE is_filetable = 1;
    GO
    @@version returns:
    Microsoft SQL Server 2012 (SP1) - 11.0.3401.0 (X64)
    Jan  9 2014 13:22:15
    Copyright (c) Microsoft Corporation
    Developer Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: )
    This may be useful but I also have SQL Server 2014 Developer Edition installed but also without always on availability / filestream enabled.

    Not yet, believe it or not, I've been working with them for nearly a month to try to figure this out.  Basically, what we found with our servers is that it's fine until it hits max memory or close to it.  When it hits max memory there
    should be the memory cleanup operations that occur, and when they start it just can't clean up the memory.  The memory cleanup operations just keep getting ran over and over which causes the high CPU to sit there even when users aren't on the system. 
    Eventually performance degrades and then eventually the SQL Server service runs out of available memory and the service restarts / crashes.  We (Microsoft) thinks they narrowed it down to 1 thing which is that it's a UserStore_SchemaMgr clerk
    which continues to grow and never shrinks.
    Here are a few things to try first:
    1) Make sure your databases are corruption free (do a DBCC CHECKDB) on all databases and make sure there is no corruption.  If there is then repair it and reboot the server.
    2) Install this hotfix (I'm doing this tonight, so I don't know if this fixes it yet, I have to do this off hours) 
    http://support2.microsoft.com/kb/2904100
    3) If no corruption exists from #1, run this: DBCC MEMORYSTATUS.  (Change the query type to have the results output as text from the top toolbar)  Then do Edit, Find and search for UserStore_SchemaMgr. 
    It's measured in KB, so you have to divide that number by 1024 for MB and 1024/1024 for GB.  In our case we have it going into the GB's.  I have a Windows 2008 R2 SQL Server that this runs at about 8 MB.  On our 2012 server it's running at
    15 GB.
    This is what we're trying to work on now.  If you don't mind, let me know what you find, because I've been spending a ton of time on this with them and I think it's a bug, however we are having a tough time finding it.
    Thanks.

  • CleanupThread from fndext.jar running continuously every 30 seconds

    I am currently integrating the E-Business Suite SDK into our dev environment. I have most of it working. But I am noticing that in my IDE console, I get the following logging every 30 seconds:
    Apr 18, 2013 11:38:16 AM oracle.apps.fnd.ext.cache.PurgeAlgorithmAbstractImpl removeExpired
    INFO: In Expired of codeLookupRegionoracle.apps.fnd.ext.common.NLSDirectory@1a03ed2
    Apr 18, 2013 11:38:16 AM oracle.apps.fnd.ext.cache.PurgeAlgorithmAbstractImpl removeExpired
    INFO: In Expired of oracle.apps.fnd.ext.common.NLSDirectory@1a03ed2319203
    Apr 18, 2013 11:38:16 AM oracle.apps.fnd.ext.cache.PurgeAlgorithmAbstractImpl removeExpired
    INFO: In Expired of oracle.apps.fnd.ext.common.ProfileDirectory@6be60d888462Some debugging shows that the first line starts running soon after I instantiate the EBiz Object:
    EBiz INSTANCE = EBizUtil.getEBizInstance();The second two INFO logs start running soon after I create the AppsRequestWrapper object:
    wrappedRequest = new AppsRequestWrapper(request, response, AppsDSConnectionProvider.getConnection(), INSTANCE);and continue every 30 seconds in sync with the first log.
    Edited by: mkohanek on Apr 26, 2013 1:21 PM

    Hi, the behaviour is irregular, i think the error is because some incompatibility hardware or insufficient resources, you must check the next address, there explain the correct RAC implementation on VMWARE environment, i checked that and the functionality is fine.
    http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnCentos4UsingVMware.php
    Luck.
    Have a good day.
    Regards,

  • Looping a method every 1/4 second

    I need to write a method that will loop another method
    every 1/4 second. I'm not sure what syntax to use to make
    it work with time. Can someone give me input? Thanks.

    Have u looked at timers. There's
    java.util.Timer;
    and
    javax.swing.Timer;
    http://java.sun.com/docs/books/tutorial/essential/threads/timer.html
    http://java.sun.com/products/jfc/tsc/articles/timer/
    I did something like this to run a method every seconds in a app im making.
    //Swing timer
    Timer timer = new Timer(1000, new TimerListener()); //run every second
    // This runs TimerListener() method every second after i call timer.start()
    class TimerListener implements ActionListener {
    public void actionPerformed(ActionEvent evt) {
    if(whatever ur checking){
    //bla blah
    else{
    timer.stop();
    // clean up ...
    If its not gui the tut suggest to use java.util.Timer;
    http://java.sun.com/docs/books/tutorial/essential/threads/timer.html
    hth

  • I am having to run v3.5.10 because even now with latest 3.6 that version - every 30 seconds or so I hear a process open and then close. Can't track it down even in task manager - too brief but it's insistent! So stuck having to use 3.5

    I have to use V3.5.10 despite wanting to run 3.6 (just updated to 3.6.6 too). However when I run 3.6 I hear thru my sounds set up a process open briefly and then close every 30 seconds or so - it's very regular and insistent and I'd like to know what it is and why. It's too brief to spot in Task manager processes listing. This did happen once under 3.5 I seem to recall but was cured when it upgraded.
    == This happened ==
    Every time Firefox opened
    == Pretty much soon after I first applied and ran 3.6

    My Win sounds give me a sound each time an app or process opens and another when it closes - thus I know from that any time something happens.
    I have 3.6.6 on as well as 3.5.10 - so can run either. But running .3.6.6 despite being update still has this odd process open and close every half minute.

  • Okay so my phone crashes approximately every 30 seconds. I have tried resetting it by DPU as well as on the phone itself.  Once in awhile i get an error message about unknown error 1.  If i look at the diagnosis or if runs on itunes i get the following i

    Okay so my phone crashes approximately every 30 seconds. I have tried resetting it by DPU as well as on the phone itself.  Once in awhile i get an error message about unknown error 1.  If i look at the diagnosis or if runs on itunes i get the following.  When I called the support at AT&T they think the phone is shot and it is a hardware thing but i have a hard time believing that when it happened when I sync'd it to my computer.  It did get progressively worse though, at first it crashed not that often and then got worse.  So restores are failing, recovery, everything.  Anyone run into this? 
    11-11-16 18:20:36.319 [2232:16dc]: amai: tss_submit_job: HttpQueryInfo returned 200
    2011-11-16 18:20:38.350 [2232:1c50]: <DFU Device 0F128BE0>: production fused device
    2011-11-16 18:20:38.350 [2232:1c50]: unable to open device_map.txt: No such file or directory
    2011-11-16 18:20:38.350 [2232:1c50]: WinDFU::OpenDeviceByPath: \\?\USB#VID_05AC&PID_1227#{B8085869-FEB9-404B-8CB1-1E5C14FA8C54}\0000#1bfe4c4c
    2011-11-16 18:20:39.132 [2232:1c50]: WinDFU::UploadData: EOF, cbRead: 553
    2011-11-16 18:20:39.147 [2232:1c50]: WinDFU::UploadData: ZLP
    2011-11-16 18:20:39.163 [2232:1c50]: WinDFU::FinalizeDfuUpdate: GetStatus: status: 0, state: 6
    2011-11-16 18:20:39.163 [2232:1c50]: WinDFU::ProcessUpdateState: status.bState == DFU_STATE_MANIFEST_SYNC
    2011-11-16 18:20:39.163 [2232:1c50]: WinDFU::FinalizeDfuUpdate: GetStatus: status: 0, state: 7
    2011-11-16 18:20:39.163 [2232:1c50]: WinDFU::ProcessUpdateState: status.bState == DFU_STATE_MANIFEST, PollTimeout: 3000
    2011-11-16 18:20:42.163 [2232:1c50]: WinDFU::FinalizeDfuUpdate: GetStatus: status: 0, state: 8
    2011-11-16 18:20:42.163 [2232:1c50]: WinDFU::ProcessUpdateState: status.bState == DFU_STATE_MANIFEST_WAIT_RESET
    2011-11-16 18:20:42.163 [2232:1c50]: WinDFU::ResetDevice: resetting...
    2011-11-16 18:21:02.210 [2232:1c50]: WinDFU::FinalizeDfuUpdate: success
    2011-11-16 18:21:03.491 [2232:c4c]: AppleDevice::EnumerateHubPorts: DoesDriverNameMatchDeviceID failed
    2011-11-16 18:21:03.507 [2232:c4c]: WinAMRestore::AddAppleDeviceToDeviceList, old disconnected device connects again
    2011-11-16 18:21:03.757 [2232:c4c]: AppleDevice::EnumerateHubPorts: DoesDriverNameMatchDeviceID failed
    2011-11-16 18:21:04.554 [2232:1b88]: amai: tss_submit_job: HttpQueryInfo returned 200
    2011-11-16 18:21:10.882 [2232:1b88]: <DFU Device 0F198478>: production fused device
    2011-11-16 18:21:10.882 [2232:1b88]: unable to open device_map.txt: No such file or directory
    2011-11-16 18:21:10.882 [2232:1b88]: WinDFU::OpenDeviceByPath: \\?\USB#VID_05AC&PID_1227#{B8085869-FEB9-404B-8CB1-1E5C14FA8C54}\0000#cfe11997
    2011-11-16 18:21:12.788 [2232:1b88]: WinDFU::UploadData: EOF, cbRead: 1321
    2011-11-16 18:21:12.804 [2232:1b88]: WinDFU::UploadData: ZLP
    2011-11-16 18:21:12.819 [2232:1b88]: WinDFU::FinalizeDfuUpdate: GetStatus: status: 0, state: 6
    2011-11-16 18:21:12.819 [2232:1b88]: WinDFU::ProcessUpdateState: status.bState == DFU_STATE_MANIFEST_SYNC
    2011-11-16 18:21:12.819 [2232:1b88]: WinDFU::FinalizeDfuUpdate: GetStatus: status: 0, state: 7
    2011-11-16 18:21:12.819 [2232:1b88]: WinDFU::ProcessUpdateState: status.bState == DFU_STATE_MANIFEST, PollTimeout: 3000
    2011-11-16 18:21:15.819 [2232:1b88]: WinDFU::FinalizeDfuUpdate: GetStatus: status: 0, state: 8
    2011-11-16 18:21:15.819 [2232:1b88]: WinDFU::ProcessUpdateState: status.bState == DFU_STATE_MANIFEST_WAIT_RESET
    2011-11-16 18:21:15.819 [2232:1b88]: WinDFU::ResetDevice: resetting...
    2011-11-16 18:21:20.866 [2232:1b88]: WinDFU::FinalizeDfuUpdate: success
    2011-11-16 18:21:21.835 [2232:c4c]: AppleDevice::EnumerateHubPorts: DoesDriverNameMatchDeviceID failed
    2011-11-16 18:21:21.835 [2232:c4c]: WinAMRestore::AddAppleDeviceToDeviceList, old disconnected device connects again
    2011-11-16 18:21:21.897 [2232:c4c]: AppleDevice::EnumerateHubPorts: DoesDriverNameMatchDeviceID failed
    2011-11-16 18:21:22.054 [2232:1838]: AMDeviceIoControl: GetOverlappedResult failed
    2011-11-16 18:21:22.054 [2232:1838]: AMDeviceIoControl: pipe stall
    2011-11-16 18:21:22.054 [2232:1838]: USBControlTransfer: error 31, usbd status c0000004
    2011-11-16 18:21:22.054 [2232:1838]: command device request for 'getenv radio-error' failed: 2008
    2011-11-16 18:21:22.054 [2232:1838]: unable to open device_map.txt: No such file or directory
    2011-11-16 18:21:22.054 [2232:1838]: <Recovery Mode Device 0F2A7768>: production fused device
    2011-11-16 18:21:24.007 [2232:1838]: AMDeviceIoControl: GetOverlappedResult failed
    2011-11-16 18:21:24.007 [2232:1838]: AMDeviceIoControl: pipe stall
    2011-11-16 18:21:24.007 [2232:1838]: USBControlTransfer: error 31, usbd status c0000004
    2011-11-16 18:21:24.007 [2232:1838]: command device request for 'getenv ramdisk-delay' failed: 2008
    2011-11-16 18:21:38.319 [2232:1344]: fixed TcpWindowSize (64512) can cause restore failure if too large
    2011-11-16 18:21:38.335 [2232:1344]: unable to open device_map.txt: No such file or directory
    2011-11-16 19:21:54.475 [2232:1344]: amai: AMAuthInstallBasebandHandleUpdaterStatus: outputDict is NULL
    2011-11-16 19:21:54.538 [2232:1344]: <Restore Device 0ED73918>: Restore failed (result = 1)
    2011-11-16 19:21:54.647 [2232:8ec]: iTunes: Restore error 1
    2011-11-16 19:22:09.100 [2232:c4c]: AppleDevice::EnumerateHubPorts: DoesDriverNameMatchDeviceID failed
    2011-11-16 19:22:09.100 [2232:c4c]: WinAMRestore::AddAppleDeviceToDeviceList, old disconnected device connects again
    2011-11-16 19:22:09.163 [2232:c4c]: AppleDevice::EnumerateHubPorts: DoesDriverNameMatchDeviceID failed
    2011-11-16 19:37:25.319 [2232:c4c]: AppleDevice::EnumerateHubPorts: DoesDriverNameMatchDeviceID failed
    2011-11-16 19:37:25.335 [2232:c4c]: WinAMRestore::AddAppleDeviceToDeviceList, old disconnected device connects again
    2011-11-16 19:37:25.382 [2232:c4c]: AppleDevice::EnumerateHubPorts: DoesDriverNameMatchDeviceID failed
    2011-11-16 19:52:41.679 [2232:c4c]: AppleDevice::EnumerateHubPorts: DoesDriverNameMatchDeviceID failed
    2011-11-16 19:52:41.679 [2232:c4c]: WinAMRestore::AddAppleDeviceToDeviceList, old disconnected device connects again
    2011-11-16 19:52:42.163 [2232:c4c]: AppleDevice::EnumerateHubPorts: DoesDriverNameMatchDeviceID failed
    I also get a system crash reporter key of c392e98c929aa0b351037af00d75d08aeadc843c    bug type 110
    incident identifier  8ff84a87

    Errors 3000-3999 (3004, 3013, 3014, 3018, 3164, 3194, and so on): Error codes in the 3000 range generally mean that iTunes cannot contact the update server (gs.apple.com) on ports 80 or 443.
    Update to the latest version of iTunes.
    Verify the computer's date and time are accurate.
    Check that your security or firewall software is not interfering with ports 80 or 443, or with the server gs.apple.com.
    Follow Troubleshooting security software. Often, uninstalling third-party security software will resolve these errors.
    An entry in your hosts file may be redirecting requests to gs.apple.com (see "Unable to contact the iOS software update server gs.apple.com" above).
    Internet proxy settings can cause this issue. If you are using a proxy, try without using one.
    Test restoring while connected to a known-good network.

  • Windows Explorer was crashing/restarting every few seconds and after trying several different methods of fixes, the only one that worked was removing Firefox, is there something I've missed that I can get Firefox back?

    I'm running a Toshiba Satellite laptop that was originally running Windows Vista 32-bit, but was upgraded by me to Windows 7 32-bit. On Windows Vista, all I would run was Firefox. I loved it!!! On Windows 7, I've noticed that Firefox kept hanging whenever I would try to download a file...from anywhere. I got so frustrated I went to try several different browsers. They all worked extremely quickly, whereas Firefox was working so slow, I could click on a link to a page, go get some lunch, come back and it still be trying to load the page. This was drastically unusual for Firefox. I used the other browsers and everything was fine for a week and then Windows Explorer started going down every few seconds. I went to the windows 7 forums and started looking. There were several suggestions on how to fix the problem, none of which worked for my compy. I tried restarting the compy in safe mode. That didn't help. I turned off every startup program except for the essentials and that DID work in keeping Windows Explorer from restarting. I then dove into the tedious task of trying to discern which 3rd party program was the offender. I removed everything from my compy that had been downloaded in the last ten days (well before the windows explorer issue, but not before the firefox issue). That didn't work either. I tried replacing an explorer file, which didn't work either. There were several other things I tried, as well, but nothing worked. Then, I saw a post that Firefox had caused the problem for one person. I went in and did as was suggested and completely removed Firefox and all associated files. Unfortunately, this worked. I haven't had any more trouble with windows explorer restarting. My big problem is, however, I can't run Firefox!!! And I LOVE Firefox!!! It's spoiled me! I hate Internet explorer, which is what I'm forced to run now. I've tried Safari and Google Chrome and don't like either one of those, either. I want my Firefox back! But if it's not working 100% it's less frustrating to be forced to live with the Internet Explorer. I'm going insane, here! Does anyone have any suggestions? I tried clearing out browser history, changing download files and a couple of other things and nothing worked with the Firefox to get it going better before I started having the Windows Explorer difficulty and had to completely erase the Firefox program. If I've missed any info, please don't hesitate to ask!! I'm happy to supply whatever I know about the issue!!

    uninstalled firefox ....deleted all files still remaining under mozilla firefox directory in program files ... to avoid having to reprogram all my settings, reisntall all addons as well .. I did not remove anything from mozilla firefox that is stored in either appdata or under the windows users directory (if any)
    ... the as suggested reinstalled the latest version of the firefox browser using the link you provided in the email ..; tested and several issues still remain present and unresolved ....
    so please this is urgent or I will have to jump browsers and start using chrome .. because we work 14 hours a day 6 (sometimes 7) days a week, to get ready for the launch of our newest venture and we cannot lose that much days on browser related issues ... so please instead of putting me through week long step process .. of do this .. do that .. can you please actually look into the issue from your end .. I use firefox for so many, many years thta I deserve this kind of support .. thnx Robert

  • How to run sql query in bat file in task schedular at every 10 seconds

    This is my sql script :
    DECLARE @countRows INT,
    @currDate DATE,
    @checkForTasks INT,
    @created_by_id INT,
    @gst_ID int;
    SET @currDate = Getdate()
    SET @countRows = (SELECT Count(*)
    FROM [dbo].[sd_gst_effective_table]
    WHERE isapplied = 0)
    IF @countRows > 0
    -- Check for those GST''s who are not applied yet : if they are greater than 0 then perform next task
    BEGIN
    SET @checkForTasks = (SELECT Count(*)
    -- Check is current date equals to task date or not
    FROM [dbo].[sd_gst_effective_table]
    WHERE effect_date = @currDate AND isapplied = 0)
    IF @checkForTasks > 0
    -- If current date = task date then perform this task
    BEGIN
    SET @created_by_id = (SELECT TOP 1 createdby FROM [dbo].[sd_gst_effective_table] WHERE effect_date = @currDate AND isapplied = 0)
    SET @gst_ID = (SELECT gst_id FROM [dbo].[sd_gst_effective_table] WHERE effect_date = @currDate AND isapplied = 0)
    -- STEP 1 :: InActivate the existing GST according to createdbyID
    UPDATE sd_gst_rate
    SET isactive = 0,
    inactivedate = Getdate()
    WHERE isactive = 1
    AND createdby = @created_by_id
    -- STEP 2 :: Activate the New GST according to implementation date and gstID
    UPDATE sd_gst_rate
    SET isactive = 1,
    activedate = Getdate()
    WHERE id = @gst_ID
    -- STEP 3 :: Inactivate the applied GST from sd_gst_effective_table
    UPDATE [dbo].[sd_gst_effective_table] SET isApplied = 1 WHERE gst_id = @gst_ID
    END
    END
    DECLARE @Text AS VARCHAR(100)
    DECLARE @Cmd AS VARCHAR(100)
    DECLARE @value nvarchar(1000);
    SET @value = (SELECT CONVERT(TIME,GETDATE()) AS HourMinuteSeconds);
    SET @Text = 'File Writed ' + @value
    SET @Cmd ='echo ' + @Text + ' > E:\AppTextFile.txt'
    EXECUTE Master.dbo.xp_CmdShell @Cmd
    This is resided in videos folder of windows , i have created a task schedular in windows 8.1 to run daily at every 10 seconds , but it is not working ... Please tell me how to deal with it.
    Please note : This sql query is running perfectly in sql server. Query have no errors. Please check whats wrong with my time schedular. I just want my schedular to run every 10 seconds regardless of date.

    Hi Emad,
    Is your script in a ".sql" file? May I know how you configure the schedule task action?
    Since you didn't mention how you configure the schedule task, can you confirm you have followed the below step correctly?
    Save your script in a ".sql" file.
    Create a ".bat" file and call the sql file above inside with
    sqlcmd.exe, you can reference
    here.
    Configure a schedule task to run the ".bat" file in a certain interval.
    Have you tried to run the script in you bat file in a standalone commandline window? Please post the script in your bat file, It can help to diagnose the issue.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • AN odd sql script run on server every 20 seconds

    I run profiler trace T-sql for one day today, and I see below script run under sa account every 20 seconds on the server:
    select table_id, item_guid,
    oplsn_fseqno, oplsn_bOffset, oplsn_slotid 
    from [DB_Name].[sys].[filetable_updates_1983398185]
    with (readpast)
    order by table_id 
    What is this script? and how to stop it running every 20 seconds? Thanks!

    Vivian,
    Are you using FileStream feature,  similar issue is discussed here, Please refer
    here and
    here too
    Thanks
    Manish
    Please click Mark as Answer if my post solved your problem and click
    Vote as Helpful if this post was useful.

  • My itunes radio rebuffers every 8 seconds - is there any fix or help for this problem.  I am running the latest itunes on a new Mac  with 4MB download speed.

    My itunes radio rebuffers every 8 seconds - is there any fix or help for this problem.  I am running the latest itunes on a new Mac  with 4MB download speed.

    You need to update your Mac OS to at least 10.5.8.
    Itunes 10+ requires Mac OS 10.5.8+

  • In iTunes v 10.2.2, Internet Radio stops and rebuffers every 30 seconds. What is the problem and what can be done about it? I'm running Mac OS X 10.6.7 0n a 2.4 G Intel Core 2 Duo iMac.

    In iTunes v 10.2.2, InternetRadio stops and rebuffers every 30 seconds. What is the problem and what can bedone about it? I'm running Mac OS X 10.6.7 0n a 2.4 G Intel Core 2 Duo iMac.

    In iTunes v 10.2.2, InternetRadio stops and rebuffers every 30 seconds. What is the problem and what can bedone about it? I'm running Mac OS X 10.6.7 0n a 2.4 G Intel Core 2 Duo iMac.

  • Wcf method call itself every few seconds

    I would like a method to call itself and send an email under circumstances. Perhaps a timer who would tick every 10 seconds? Is it plausible? 

    Hi,
    For this scenario, you may need to define a WCF service, which contains the corresponding operations.
    The operation can send an email or do some other things. After you host the WCF service, you can create a windows service or task job to call the service at specific time.
    For more information, you could refer to:
    https://social.msdn.microsoft.com/Forums/en-US/c75f293d-11e9-477a-abc4-f4fe2e61dd6b/wcf-service-calling-itself-every-x-minutes?forum=wcf
    Regards

  • Running a TCL script through EEM every 60 seconds

    I have a script written in the TCLSH of IOS, I can test this script from the shell using the following commands
    LAB-RTR#tclsh
    LAB-RTR(tcl)#source flash:test.tcl
     NO CALLS
    Is there a way I can run this test.tcl script every 60 seconds on the router.
    SCRIPT test.tcl
    proc get_ints {} {
    set syslog [open "syslog:" w+]
    #puts "BEFORE\n"
    set check ""
    set int_out [ exec "show voice call status\n" ]
    #puts "INTOUT $int_out\n"
    set mylist [regexp -nocase -line -inline {(^([0-9]*|No) active calls? found)} $int_out]
    #puts "MYLIST $mylist\n"
    foreach int $mylist {
     #puts "INT $int\n"
     if {$int == "No"} {
      puts " NO CALLS\n";
      puts $syslog "NO CALLS"
     } elseif {[string is integer -strict $int]} {
      puts "$int CALLS\n";
      puts $syslog "$int CALLS"
     } else {
      #puts "GARBAGE\n";
    close $syslog
    #puts ""
    puts [eval get_ints]

    Hey Joseph, Thanks for all your help. I have one last question, so now that I am running my script every 60 seconds if there is an issue I send multiple traps to our monitoring system. Is there any way you can keep track if the trap was already sent I will not send another trap again.
    One way I can think of is using a loopback interface. But I would prefer not shutting down the loopback interface just to keep track of what my script is doing.
    IF issue {
       IF Loop1 is up {
                don't send trap
        } ELSE {
                bring Loop1 up
                Send Trap
     } ELSE (No issue) {
       shutdown Loop1

  • New mac 21,5, fan run at maximum speed, + sleep down every 12 secondes

    Hi,
    On a new Imac ( 2 weeks), suddenly fans run at maximum speed after you turn it on.
    I tried to reset SMC as described on article TS1433 without success.
    I've got another problem, when my imac sleep down, it wakes up by itself and goes to sleep every 12 seconds. If I reboot, it stay on until the next sleep down.
    Any idea ??
    Bruno

    Sounds like a candidate for return. My new 21.5 has worked flawlessly 99.9% of the brief time I've had it (since early November).
    The one time I had a problem with it, the fan went into hyperdrive and the noise was deafening (and I'm hard of hearing). I don't remember doing anything wild at the time. I'm not sure I even had BootCamp up with Win7 at that time.
    Anyway, I turned the computer off, waited a couple of minutes and then turned it back on and it was back to quiet mode again. Never happened again (at least with me in the room).
    Couldn't be happier with the computer! Besides all the OS X stuff, it runs Win 7 in BootCamp probably as well as any Windows computer and maybe even better.

  • Airlock_daemon is crashing every 10 seconds and forcing ReportCrash to run, wasting CPU.

    I always keep activity monitor running on my computer. About a week ago, I noticed that ReportCrash was always running and using around 5-10% of CPU. After some research, I went into system.log in Console and discovered that "airlock_daemon" was crashing around every 10 seconds. I am running OSX 10.9.4 on my iMac. Here is a part of the log:
    Sep  6 09:03:23 kids-imac com.apple.launchd[1] (com.themha.airlock.daemon[50448]): Job appears to have crashed: Abort trap: 6
    Sep  6 09:03:23 kids-imac com.apple.launchd[1] (com.themha.airlock.daemon): Throttling respawn: Will start in 10 seconds
    Sep  6 09:03:23 kids-imac ReportCrash[50446]: Saved crash report for airlock_daemon[50448] version ??? to /Library/Logs/DiagnosticReports/airlock_daemon_2014-09-06-090323_Kids-iMac.cras h
    Sep  6 09:03:23 kids-imac ReportCrash[50446]: Removing excessive log: file:///Library/Logs/DiagnosticReports/airlock_daemon_2014-09-06-085957_Kids-iM ac.crash
    Sep  6 09:03:33 kids-imac airlock_daemon[50449]: *** Assertion failure in -[ALDaemon dealloc], /Users/dave/Desktop/airlock/Daemon/Source/ALDaemon.m:194
    Sep  6 09:03:33 kids-imac airlock_daemon[50449]: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: NO'
      *** First throw call stack:
      0   CoreFoundation                      0x00007fff8798825c __exceptionPreprocess + 172
      1   libobjc.A.dylib                     0x00007fff8e7a0e75 objc_exception_throw + 43
      2   CoreFoundation                      0x00007fff87988038 +[NSException raise:format:arguments:] + 104
      3   Foundation                          0x00007fff891efd41 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 189
      4   airlock_daemon                      0x0000000100000eea airlock_daemon + 3818
      5   airlock_daemon                      0x0000000100002024 airlock_daemon + 8228
      6   airlock_daemon                      0x0000000100000e35 airlock_daemon + 3637
      7   airlock_daemon                      0x0000000100002180 airlock_daemon + 8576
      8   airlock_daemon                      0x0000000100000dd8 airlock_daemon + 3544
      9   ???                                 0x0000000000000001 0x0 + 1
    Sep  6 09:03:33 kids-imac com.apple.launchd[1] (com.themha.airlock.daemon[50449]): Job appears to have crashed: Abort trap: 6
    Sep  6 09:03:33 kids-imac com.apple.launchd[1] (com.themha.airlock.daemon): Throttling respawn: Will start in 10 seconds
    Sep  6 09:03:33 kids-imac ReportCrash[50446]: Saved crash report for airlock_daemon[50449] version ??? to /Library/Logs/DiagnosticReports/airlock_daemon_2014-09-06-090333_Kids-iMac.cras h
    Sep  6 09:03:33 kids-imac ReportCrash[50446]: Removing excessive log: file:///Library/Logs/DiagnosticReports/airlock_daemon_2014-09-06-090007_Kids-iM ac.crash
    Sep  6 09:03:43 kids-imac airlock_daemon[50451]: *** Assertion failure in -[ALDaemon dealloc], /Users/dave/Desktop/airlock/Daemon/Source/ALDaemon.m:194
    Sep  6 09:03:43 kids-imac airlock_daemon[50451]: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: NO'
      *** First throw call stack:
      0   CoreFoundation                      0x00007fff8798825c __exceptionPreprocess + 172
      1   libobjc.A.dylib                     0x00007fff8e7a0e75 objc_exception_throw + 43
      2   CoreFoundation                      0x00007fff87988038 +[NSException raise:format:arguments:] + 104
      3   Foundation                          0x00007fff891efd41 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 189
      4   airlock_daemon                      0x0000000100000eea airlock_daemon + 3818
      5   airlock_daemon                      0x0000000100002024 airlock_daemon + 8228
      6   airlock_daemon                      0x0000000100000e35 airlock_daemon + 3637
      7   airlock_daemon                      0x0000000100002180 airlock_daemon + 8576
      8   airlock_daemon                      0x0000000100000dd8 airlock_daemon + 3544
      9   ???                                 0x0000000000000001 0x0 + 1
    Sep  6 09:03:44 kids-imac com.apple.launchd[1] (com.themha.airlock.daemon[50451]): Job appears to have crashed: Abort trap: 6
    Sep  6 09:03:44 kids-imac com.apple.launchd[1] (com.themha.airlock.daemon): Throttling respawn: Will start in 10 seconds
    Sep  6 09:03:44 kids-imac ReportCrash[50446]: Saved crash report for airlock_daemon[50451] version ??? to /Library/Logs/DiagnosticReports/airlock_daemon_2014-09-06-090344_Kids-iMac.cras h
    Sep  6 09:03:44 kids-imac ReportCrash[50446]: Removing excessive log: file:///Library/Logs/DiagnosticReports/airlock_daemon_2014-09-06-090018_Kids-iM ac.crash
    Sep  6 09:03:54 kids-imac airlock_daemon[50453]: *** Assertion failure in -[ALDaemon dealloc], /Users/dave/Desktop/airlock/Daemon/Source/ALDaemon.m:194
    Sep  6 09:03:54 kids-imac airlock_daemon[50453]: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: NO'
      *** First throw call stack:
      0   CoreFoundation                      0x00007fff8798825c __exceptionPreprocess + 172
      1   libobjc.A.dylib                     0x00007fff8e7a0e75 objc_exception_throw + 43
      2   CoreFoundation                      0x00007fff87988038 +[NSException raise:format:arguments:] + 104
      3   Foundation                          0x00007fff891efd41 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 189
      4   airlock_daemon                      0x0000000100000eea airlock_daemon + 3818
      5   airlock_daemon                      0x0000000100002024 airlock_daemon + 8228
      6   airlock_daemon                      0x0000000100000e35 airlock_daemon + 3637
      7   airlock_daemon                      0x0000000100002180 airlock_daemon + 8576
      8   airlock_daemon                      0x0000000100000dd8 airlock_daemon + 3544
      9   ???                                 0x0000000000000001 0x0 + 1

    Back up all data.
    Triple-click the line below on this page to select it, then copy the text to the Clipboard by pressing the key combination  command-C:
    /Library/LaunchDaemons
    In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return. A folder may open. If it does, look for an item named "com.themha.airlock.daemon.plist" or similar. Move the item to the Trash. You may be prompted for your administrator password.
    Restart the computer and drag the folder named "airlock" from the Desktop to the Trash. Empty.

Maybe you are looking for