Coder Social home page Coder Social logo

processinspector's Introduction

Process Location Finder (PLF)

PLF is a script written in Python that retrieves information about running processes on a system, including their names, locations, parent processes, and activation time. It provides the ability to save this information in different formats such as CSV, JSON, and XML. It also allows continuous monitoring of new processes over a specified time interval.

Prerequisites

  • Python 3.x
  • psutil library (pip install psutil)

Usage

python plf.py -o <output_folder> -f <format> -t <interval> -T <total_time>
  • -o <output_folder> (optional): Specify the output folder where the result file will be saved. If not provided, the file will be saved in the current directory.
  • -f <format>: Specify the output format. Choose one of the following options: csv, json, or xml.
  • -t <interval>: Specify the time interval in seconds at which the process list should be updated. This determines how frequently new processes are checked.
  • -T <total_time>: Specify the total duration in seconds for which the script should monitor new processes and update the list.

Example:

python plf.py -o /path/to/output/folder -f json -t 60 -T 600

The script will continuously monitor the running processes, update the process list every 60 seconds, run for 600 seconds (10 minutes), and save the final process locations as a JSON file in the specified output folder.

Output

The script generates a file named running_processes.<format> in the specified output folder. The format can be csv, json, or xml, depending on the chosen format. The file contains information about the running processes, including their names, locations, parent processes, and activation time.

License

This project is licensed under the MIT License.

Acknowledgements

PLF uses the psutil library for retrieving process information. More information about psutil can be found here.

processinspector's People

Contributors

mberetvas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.