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 8762453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:32:03+00:00 2026-06-13T15:32:03+00:00

I have classical python server. I made a CGI script. I would like from

  • 0

I have classical python server.
I made a CGI script. I would like from a click in the client side, execute a script in the server side and screen the result in the same page dynamically in the client side.

I know how to update dynamically a page in the client side but I didn’t find a way to do it from the server side.

For instance my initial webpage:

print 'Content-type: text/html'# image/svg+xml'
print '''
    <html>
    <head>
    </head>

    <body>
    <h1>My PAGE</h1>

    <a href=#1" onclick="launcher(arg);">Execute my program</a>
    <div id="1" style="display: none;" name="resul1"></div>
    </body>
    </html>
    '''

I would like to execute a script in the server when we click like this kind of execution:

command = "python myscriptinLocal.py -a %s"%(arg)
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
process.wait()

A result file is generated in the server, and I would like to screen the result in the current page without to generated a new page….

Is it possible? Is there a way to do that with python or with another language?

  • 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-06-13T15:32:04+00:00Added an answer on June 13, 2026 at 3:32 pm

    You can use any one of python WSGI frameworks to do exactly that. Just sign a free account with Google App Engine and you will be able to do that immediately. Although you may not be able to spawn your own process nothing will stop you from executing your python script and output it as html!
    Google app engine pages in Stack:
    https://stackoverflow.com/questions/tagged/google-app-engine?sort=votes

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

Sidebar

Related Questions

Basically i have a classic vhost with: ServerName www.site.com ServerAlias site.com I would like
I'm developing an app (an API) in python and I would like to offer
I have downloaded PDF Clown for .NET. I would like to use it in
I have a critical issue. I would like integrate my application with another much
we have a classical 3-tier-architecture application. Now we face a little problem and we
Classical question at tests: I have 4 dimensions: Markets: Sparse, 10 stored members, 10
I have to do a user registration form (classical layout with two columns, labels
I have an ecommerce website that works in a classical way: people sign up,
Background : I have a small Python application that makes life for developers releasing
I am trying to teach myself Python, and I have realized that the only

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.