import subprocess import random for i in range(random.randint(1,10)): subprocess.call("/srv/daily-commit/commit.sh", shell=True)