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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:55:10+00:00 2026-06-15T22:55:10+00:00

I am working on this networking project for which I need to create many

  • 0

I am working on this networking project for which I need to create many shell scripts to run tools like “tc”, “arp” and “ping” from multiple nodes to multiple nodes at a time. I need to generate several such scripts for many nodes. So I need to create many scripts for each scenario and configuration, each of which varies slightly from the other. Also, my work also deals with Mininet. I need to create python scripts to generate many custom topologies there. It is a pain to hard code so many long scripts.

So I wanted to know what is the best way to automate the creation of these scripts? Is it possible to generate these shell/python scripts using another shell script? Or should I generate these using Java? Which is the easiest approach? Just want to your opinions before I start working. Thanks 🙂

  • 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-15T22:55:12+00:00Added an answer on June 15, 2026 at 10:55 pm

    Here’s a python function that creates a script used to set to a hyperlink in Excel. The new script opens a particular pdf at a particular page. The larger program to which this function belongs generates dozens, sometimes hundreds, of these scripts per run, all of which are identical except for the args passed to this function. They are all automatically deleted when the user closes Excel and exits the program:

    def makeOpener(pdf, page):
        '''makes a pyw file to use to hyperlink in excel'''
        t = 'c:/temp'
        if not os.path.isdir(t):
            os.makedirs(t)
        tempfile.tempdir = t
        py = tempfile.NamedTemporaryFile(suffix='.pyw', delete=False)
    
        lst = ['import subprocess, win32api',
               'pdf = r"' + pdf + '"',
               'page = "' + str(int(page)) + '"',
               '_, exe = win32api.FindExecutable(pdf)', 
               'opts = "page=" + page', 
               'clst = [exe, "/A", opts, "/N", pdf]', 
               'DP = 0x00000008', 
               'subprocess.Popen(clst, shell=False, creationflags=DP)'
               ]
        py.write('\n'.join(lst))       
        py.close()
        return py.name
    

    Mike

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

Sidebar

Related Questions

This is the situation: I'm working on a project where I need to be
So this was working on this project a few months ago. I'm using Google
Update: Got this working by disabling CodeIgniter Profiler which was interfering with the Ajax
I am working on a social networking site and it has a wall like
I'm currently working on a distributed networking project for some networking practice and the
I am currently working on a social networking website, and I would like the
I am working on this new social networking site. One of it's various functions
I'm working on a basic networking protocol in Python, which should be able to
I am working on a networking program using C++ and I'd like to implement
This openvz box was working properly few weeks ago, and now it can't ping

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.