Search notes:

Python standard library: subprocess

The standard library module subprocess can be used to start new process.
This module also allows to read/write into/from stdin, stdout and stderr.
subprocess intends to replace

Popen

from subprocess import Popen

proc = Popen(['gvim', __file__])
print('pid = {}'.format(proc.pid))
Github repository about-python, path: /standard-library/subprocess/Popen/start-gvim.py
See also this stackoverflow answer

check_output

check_output runs a command and returns the command's output.
>>> print(subprocess.check_output('xclip -o', shell=True).decode('utf8'))

See also

standard library

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1745043868, '18.222.170.43', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Python/standard-library/subprocess/index(65): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78