Execute terminal commands in python3 [duplicate] Execute terminal commands in python3 [duplicate] python-3.x python-3.x

Execute terminal commands in python3 [duplicate]


Use the subprocess module:

import subprocesssubprocess.Popen(["fswebcam", "image.jpg"])