NOT LOGGING TO FILE >> /tmp/astroport.log (TO MUCH DATA)

This commit is contained in:
qo-op 2020-12-15 23:57:56 +01:00
parent 6ce99720a1
commit d1c2392c42
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,8 @@ awk -i inplace -v rmv="cron_MINUTE" '!index($0,rmv)' /tmp/mycron && echo "Astrop
crontest=$(cat /tmp/mycron | grep -F 'cron_MINUTE')
# ADD cron_MINUTE.sh TO cron ?
if [[ ! $crontest ]]; then
echo "* * * * * $MY_PATH/../cron_MINUTE.sh >> /tmp/astroport.log 2>&1>/dev/null" >> /tmp/mycron && crontab /tmp/mycron \
# NOT LOGGING TO FILE >> /tmp/astroport.log (TO MUCH DATA)
echo "* * * * * $MY_PATH/../cron_MINUTE.sh 2>&1>/dev/null" >> /tmp/mycron && crontab /tmp/mycron \
else
echo "No operation needed. Your crontab is: " && crontab -l
fi