Skip to main content

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


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.11.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

subprocesshidden-0.11-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file subprocesshidden-0.11.tar.gz.

File metadata

  • Download URL: subprocesshidden-0.11.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for subprocesshidden-0.11.tar.gz
Algorithm Hash digest
SHA256 fdc895e8ceaa6067399652692a1d51279da8f44de84e879432645d4bd64dbd8b
MD5 74e7cfaa3d4b2530b68d0b2887a22aa7
BLAKE2b-256 ebc47f60fcfc4009824c238784d5bde8e6fa98968766e142a762c22b6b9ad7d2

See more details on using hashes here.

File details

Details for the file subprocesshidden-0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for subprocesshidden-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 510cf551ee5d5a948f4e9171243f9dc999d6c3f9e992e97e88bb9229460c05b8
MD5 0851f68a591018970255e8d86aa8fc0d
BLAKE2b-256 886edbe22bce3d3b6b9227f68f2678d2fe45baac62716fd7e8b47330f56e770e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page