commit message from python script

This commit is contained in:
2023-04-14 17:54:48 +02:00
parent 2d6e0298da
commit 6107201331
2 changed files with 4 additions and 2 deletions

View File

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