Answers for "crontab python script"

0

crontab python

from crontab import CronTab
cron = CronTab(user='root')
job = cron.new(command='echo hello_world')
job.minute.every(1)
cron.write()
Posted by: Guest on October-27-2021
0

crontab python script

#!/usr/bin/env python3
#-*- coding: utf-8 -*-

import subprocess

def sendmessage(message="drink water"):
	subprocess.Popen(['notify-send', message])
	return

if __name__ == '__main__':
	sendmessage()
Posted by: Guest on January-17-2022

Python Answers by Framework

Browse Popular Code Answers by Language