Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7532665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:31:11+00:00 2026-05-30T05:31:11+00:00

I capture data with tshark and save certain data from the packet header to

  • 0

I capture data with tshark and save certain data from the packet header to process them in order to detect some incedants in the network. I saved the data in a table in my lua program (which is running in the cmd with tshark using the command (-Xlua_script:))
and now i want to process the data of each minute alone while capturing is running. It’s an online processing. Firstly:Any body knows if this could be implemented?Secondly I need a timer, I don’t know how to do this, and i want a way that i can take the data in the tables to process them, reset the tables to get the new data of the next minute without losing any data.
Any suggestions or ideas??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T05:31:13+00:00Added an answer on May 30, 2026 at 5:31 am

    there isn’t the concept of a ‘timer’ in lua like some other languages, where you can create one and set up an event handler and have your main program notified when the timer goes off… however you can periodically check os.clock() to determine how long its been since you’ve done some processing and if a minute has elapsed, go ahead and process the data.

    something like this might be what you need:

    lastTimeProcessed = os.clock()
    
    function IsTimeToProcess(currentTime)
        span = currentTime - lastTimeProcessed
        if span >= 60 then
            lastTimeProcessed = currentTime
            return true
        end
    
        return false
    end
    
    while true do
        if IsTimeToProcess(os.clock()) then
            -- process some data here
        end
        -- otherwise do another round of whatever you're doing
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Some time ago I created an application to dynamically capture data from an asp
I have a test list that I am trying to capture data from using
Change Data Capture is a new feature in SQL Server 2008. From MSDN: Change
I am using the Infragistics UltraWebGrid to capture some data. I don't have this
I'm building some custom content types to capture customer data on a website. Admins
I've written a basic SL4 application to capture audio data from the microphone using
I have 5 views in my ASP.NET MVC application. Some data were captured from
How to capture data from camera with out using DirectShow? (in C# on windows
I am trying to capture data from my form and pump it into a
I'm trying to figure out how to capture data from a form using EditText

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.