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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:36:39+00:00 2026-05-30T23:36:39+00:00

I have a python web application and I would like to run multiple scripts

  • 0

I have a python web application and I would like to run multiple scripts from it. Scripts are written in various languages, like bash, lua, perl, c++, ruby, etc. The thing is that I would like to first parse the script to replace the predefined building blocks with actual numbers. So for example, let’s say I have the following bash script:

#!/bin/bash

ping -c 3 {{ip}}

Then I would like to pass that script into a wrapper with all the variables the script will need – in this case just the ip variable. The wrapper should replace all the variables with actual values, so if we inputed the ip variable as a value = 10.1.1.1, then the script should become:

#!/bin/bash

ping -c 3 10.1.1.1

And I want this functionality for all of the programming languages. So I’m using python, which should in turn use some kind of wrapper that accepts a script + arguments, and outputs corresponding output script.

I’ve found swig already, but don’t know if it does what I want, so suggestions are greatly appreciated.

Thank you

  • 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-30T23:36:40+00:00Added an answer on May 30, 2026 at 11:36 pm

    It sounds like you want m4, which would handle this easily for all scripting languages. C++, being a compiled language, would be a totally different undertaking, but I’ll assume you didn’t really mean that.

    There are multiple free m4 implementations; it’s already going to be on every Linux box.

    You definitely don’t want SWIG, it does something completely different.

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

Sidebar

Related Questions

I have a small web.py Python application that I would like to serve under
I have a web service to which users upload python scripts that are run
Question for Python 2.6 I would like to create an simple web application which
I have a little desktop game written in Python and would like to be
I have a web application written using CherryPy, which is run locally on 127.0.0.1:4321
I have the 'luck' of develop and enhance a legacy python web application for
I have a mechanize script written in python that fills out a web form
we have create a web application on top of google app engine and python.
I have been trying to create a web service out some python scripts, and
I have a python program that I would like to present as a simple

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.