Category: devPython

Python on GNU Linux mate how to run script in external separate terminal window
24.06.2024

hostnamectl; # tested on Static hostname: debian12DevPython Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.1.0-20-amd64 Architecture: x86-64 python –version Python 3.11.2; # tested on vim run_script_in_external_terminal.py #!/usr/bin/env python import subprocess process = subprocess.Popen(‘/usr/bin/mate-terminal -e /run/some/script.sh’.split(), stdout=subprocess.PIPE) output, error = […]