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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:45:16+00:00 2026-05-31T08:45:16+00:00

I have a program that i have wrote, internally i am using the Fping

  • 0

I have a program that i have wrote, internally i am using the Fping program in order to send pings to other computers, the Fping program needs to get a file that includes a list of IP address in order to get Fping to send pings automatically to a bunch of IP address.

Right now in my script i am creating a file on the disk then call Fping to use that file, then i am deleting the file.

I would like to know if there is a way to create a file-like object that is acting as a file, then i could call Fping to use that object instead of a real file.

I am using Python 3, and Fping for Windows.

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-05-31T08:45:18+00:00Added an answer on May 31, 2026 at 8:45 am

    Because fping can read in the list of machines from standard input (see details in the man page) you simply need to write the addresses to standard input. The subprocess module can provide some ways to write data to standard input, but if all the data is known at the start, a (somewhat tacky) way to do this is to add echo to your command.

    echo 4.2.2.1 www.google.com www.yahoo.co.uk | fping
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to write a program that read from a file that contains the
I have a Perl program, that needs to use packages (that I also write).
I have a program that creates a Windows user account using the NetUserAdd() API
I have a finished program that I wrote with Objective-C in XCode 3.2.3. I
I have a program that needs to constantly ping a device However this ping
I have a test program that I wrote to try and debug a GMutex
I have a Java program that connects to a webserver using SSL/TLS, and sends
I have a program I wrote that when it has an error, it saves
I have to write a program that sniffs network packets (part1-the simple part). And
I wanted to write a program that test if two files are duplicates (have

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.