Tag

subprocess

1 views collected around this technical thread.

Raymond Ops
Raymond Ops
Apr 27, 2025 · Fundamentals

9 Powerful Python Techniques to Copy Files Efficiently

Learn nine distinct Python approaches for copying files—including shutil functions, os commands, threading, and subprocess methods—while understanding their performance implications, error handling, platform compatibility, and when to choose each technique for optimal I/O efficiency.

File I/OPythoncopyfile
0 likes · 12 min read
9 Powerful Python Techniques to Copy Files Efficiently
Code Mala Tang
Code Mala Tang
Apr 1, 2025 · Backend Development

Enforcing Python Function Timeouts: Libraries, Multiprocessing & Subprocess

This article explains why limiting a function's execution time is crucial for stability, and demonstrates multiple Python techniques—including the func-timeout library, custom multiprocessing, subprocess.run, and signal handling—to set and manage timeouts effectively.

Pythonerror handlingfunction timeout
0 likes · 8 min read
Enforcing Python Function Timeouts: Libraries, Multiprocessing & Subprocess
Python Programming Learning Circle
Python Programming Learning Circle
Jan 17, 2024 · Information Security

How to Retrieve Saved WiFi Passwords on Windows Using CMD and Python

This guide shows how to list and export all saved WiFi profiles on a Windows PC via the command prompt and a Python script, explains the use of the subprocess module for executing system commands, and includes notes on UTF‑8 handling and related code examples.

CMDPythonWiFi
0 likes · 7 min read
How to Retrieve Saved WiFi Passwords on Windows Using CMD and Python
Python Programming Learning Circle
Python Programming Learning Circle
Jun 16, 2022 · Backend Development

Python Script to Keep Campus Network Connection Alive

This article explains how to use a Python script that continuously pings an external address and automatically logs into a campus web authentication portal via HTTP POST when the connection drops, ensuring the computer stays online for remote access, and provides the full source code and setup instructions.

Base64Campus WiFiHTTP POST
0 likes · 4 min read
Python Script to Keep Campus Network Connection Alive
360 Quality & Efficiency
360 Quality & Efficiency
May 13, 2022 · Backend Development

Using Python's subprocess Module in a Data Construction Platform: Basics, Issues, and Solutions

This article explains how the Python subprocess module is employed in a data construction platform, compares run and Popen methods, discusses challenges such as incomplete log capture and process termination, and presents three practical solutions to ensure reliable execution and logging.

Process Managementbackendlogging
0 likes · 9 min read
Using Python's subprocess Module in a Data Construction Platform: Basics, Issues, and Solutions
Python Programming Learning Circle
Python Programming Learning Circle
Dec 7, 2021 · Fundamentals

Handling Subprocess Pipe Buffer Limits and Avoiding Deadlocks in Python

This article explains why Python's subprocess.Popen can deadlock when the child process writes more data than the system pipe buffer (typically 4 MiB), and demonstrates practical solutions such as avoiding PIPE, using communicate(), and streaming output with StringIO to prevent the blockage.

communicatedeadlockpipe
0 likes · 6 min read
Handling Subprocess Pipe Buffer Limits and Avoiding Deadlocks in Python
Python Programming Learning Circle
Python Programming Learning Circle
Nov 19, 2021 · Fundamentals

Using Python to Execute Shell Commands: os.system, os.popen, commands, and subprocess

This article explains Python's built‑in methods for invoking shell commands—including os.system, os.popen, the commands module, and the subprocess module—detailing their return values, usage examples, and when to choose each approach for capturing command output.

Pythoncommand executionos module
0 likes · 4 min read
Using Python to Execute Shell Commands: os.system, os.popen, commands, and subprocess
Python Programming Learning Circle
Python Programming Learning Circle
Mar 31, 2020 · Backend Development

Four Ways to Execute Shell Commands in Python

This article explains four Python techniques—os.system, os.popen, the commands module, and subprocess—for running shell commands, comparing their ability to capture output, return status, and recommending subprocess as the most flexible modern solution.

Pythoncommandsos
0 likes · 3 min read
Four Ways to Execute Shell Commands in Python
NetEase Game Operations Platform
NetEase Game Operations Platform
Sep 21, 2019 · Backend Development

Investigation of Subprocess Pipe Blocking in a Python Agent

The article analyzes a rare blocking issue in a Python Agent where a subprocess created via subprocess.Popen hangs due to an unclosed pipe inherited by a forked child process, demonstrates debugging steps using thread frames and lsof, and provides a reproducible example and mitigation recommendations.

LinuxPythondebugging
0 likes · 10 min read
Investigation of Subprocess Pipe Blocking in a Python Agent