4

On a mac preferably, what are the modules you need to import or just what to write to run something simple like: a python script to open a terminal and use the screencapture command on mac terminal to capture your screen image every minute?

winedragon
  • 53
  • 1
  • 5
  • Possible duplicate of [Python Script execute commands in Terminal](https://stackoverflow.com/questions/3730964/python-script-execute-commands-in-terminal) – the.salman.a Mar 23 '18 at 07:09
  • 1
    Possible duplicate of [Calling an external command in Python](https://stackoverflow.com/questions/89228/calling-an-external-command-in-python) –  Mar 23 '18 at 07:11

1 Answers1

6

You can try with:

import os
os.system('...your command...')
Julio CamPlaz
  • 857
  • 8
  • 18