diff --git a/smart-cron-builder.py b/smart-cron-builder.py index 3c5d6d4..620f36f 100755 --- a/smart-cron-builder.py +++ b/smart-cron-builder.py @@ -56,7 +56,9 @@ def buildCronExecuteTime(): def buildCronSituation(): - return buildCronExecuteTime() +"/yankee-gnome-fire-consumer/consumer.bash >> " + buildLogFileName() + " 2>&1" + return "* * * * * /yankee-gnome-fire-consumer/consumer.bash >> " + buildLogFileName() + + ##return buildCronExecuteTime() +"/yankee-gnome-fire-consumer/consumer.bash >> " + buildLogFileName() + " 2>&1" ##return buildCronExecuteTime() +" python3 /yankee-gnome-fire-consumer/consumer.py >> " + buildLogFileName() + " 2>&1" @@ -107,13 +109,6 @@ def writeCrontabSituation(): file_path ="crontabX" - crontab_text = """ -PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin - -* * * * * python3 /yankee-gnome-fire-consumer/consumer.py >> /var/log/yankee-downloader.log 2>&1 - -* * * * * /tmp/ping2.bash >> /var/log/cron.log 2>&1""" - try: if os.path.exists(file_path): @@ -155,6 +150,6 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin #################### -createLogDir() +#createLogDir() writeCrontabSituation()