Executes subprocesses without console (Windows), reads stdout/stderr
Project description
Executes subprocesses without console (Windows), reads stdout/stderr
pip install subprocesshidden
from subprocesshidden import Popen
import os
os.chdir("c:\\windows")
p1 = Popen("ls -la", timeout=1, shell=True)
p2 = Popen("dir /s", timeout=3, shell=True) # tasks are killed with taskkill
p3 = Popen("dir /xsd")
print(p1.stdout_lines)
print(p2.stdout_lines)
print(p3.stdout_lines)
print(p3.stderr_lines)
print(p2.stderr_lines)
print(p1.stderr_lines)
print(p1.stdout)
print(p2.stdout)
print(p3.stdout)
print(p3.stderr)
print(p2.stderr)
print(p1.stderr)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
subprocesshidden-0.10.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for subprocesshidden-0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bebb08d420056d92c2917d61fc91668f0e9295444d3248b9678dfeff85b1d2be |
|
MD5 | d45ce11761a6672d80d4346763f3c72f |
|
BLAKE2b-256 | f5cd4e9cc86307ba849e5d01d9d7b91510283156b7aca7da2d266139dda5d856 |