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

  • Home
  • SEARCH
  • 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 3975012
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:38:05+00:00 2026-05-20T04:38:05+00:00

I have an executable on my web server that outputs XML to a file

  • 0

I have an executable on my web server that outputs XML to a file or standard output. The XML contains data I would like to turn into a table. This XML will be unique per user and will change on a periodic basis.

On my web page, I would like to:

  1. Trigger running this executable on a set period (e.g. 30 minutes) to refresh the XML data

  2. Parse this XML and dynamically add/remove table rows as the XML data changes between triggered runs

For #2, I think I can use $.ajax() to grab the server-side XML file and work with its contents, using innerHTML to render a table and add it to the web page.

I think the part I am stuck on is item #1. My web page is output from a Perl CGI script. Once the script is finished, the HTTP request is complete and there is no more communication between client and server.

Do I need to have a separate process running on the server that puts an XML file somewhere where the jQuery Ajax call can find it as needed? (I’d like to avoid this, as I’d have to manage many separate processes and XML files, depending on where the users are on the web site, whether they are logged in, etc.)

Or is there a cleaner way to have the client-side web page ask the web server to run a server-side executable, without reloading the web page? Something like a hidden form that, when triggered, can call an action without reloading the entire page?

Sorry if these are dumb questions. Thanks for your advice.

  • 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-20T04:38:06+00:00Added an answer on May 20, 2026 at 4:38 am

    You can use jquery to execute a function every so often (say 30 mins) and make an ajax request to the server. In turn, the server will execute and request the XML file and push it to the javascript function where you can parse it.
    The way I understand your question, #1 is not an issue. Once the web page is rendered there is nothing that you would have to do.

    like this:

    window.setInterval(getXML, 1800000); //will execute the function every 30 minutes
    
    function getXML() { 
    
       $.ajax({
         type: 'POST',
         url: http://yourserver.com/somepageorform,
         data: data, //any data you may need to send
         success: function(data) { 
            var url = data;
            $.ajax({
               type: 'GET',
               url: url,
               success: function(xml) {
               //process the xml
            },
         dataType: dataType
       });
      },
      dataType: dataType
    
    });
    }
    

    This is an asynchronous call to your server. then somepageorform will execute the cgi and generate the XML file. in the doSomething() function you would have the function that processes the XML as it will not execute until the process is done. I would assume the CGI would return the path to the file, so then in your function you would be able to get it and process it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an executable module created by third party. I would like to inject
I want to have an executable file that will call some other programs. The
I have a web service that must run an executable. To run the executable
I have a completely blank .aspx file residing on an IIS6 web server. The
I have an executable that depending on the command line switch supplied looks something
I have an executable that is started by a windows service, this program will
I have an executable that defaults to 32-bit. It doesn't have source code and
I have a setup executable that I need to install. When I run it,
I have an application on my server that is called leaf.exe , that haves
We have a command line exe that takes input from a text file and

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.