commit message from python script

This commit is contained in:
2023-04-14 17:11:49 +02:00
parent 9822e57c02
commit 943bac5c6b

View File

@@ -18,7 +18,7 @@ def search_str(file_path, word):
user_bin = os.environ["HOME"] + os.sep + "bin" user_bin = os.environ["HOME"] + os.sep + "bin"
user_zshrc = os.environ["HOME"] + "/.zshrc" user_zshrc = os.environ["HOME"] + "/.zshrc"
my_logfile = os.sep + "var" + os.sep + "log" + os.sep + "pull_and_push.log" my_logfile = os.sep + "var" + os.sep + "log" + os.sep + "pull_and_push.log"
basic_command = "* */17 * * * pull_and_push >> " + my_logfile basic_command = "* */17 * * * " + "'pull_and_push >> " + my_logfile + "'"
print(basic_command) print(basic_command)
is_exist = False is_exist = False
@@ -47,6 +47,6 @@ for item in basic_iter:
if not is_exist: if not is_exist:
cron_job = cron.new(command="pull_and_push >> " + my_logfile) cron_job = cron.new(command="'pull_and_push >> " + my_logfile + "'")
cron_job.hours.every(17) cron_job.hours.every(17)
cron.write() cron.write()