crontab is
This commit is contained in:
parent
13a376d128
commit
a53aece7eb
|
@ -25,7 +25,7 @@ crontest=$(cat /tmp/mycron | grep -F 'cron_MINUTE')
|
|||
if [[ ! $crontest ]]; then
|
||||
echo "* * * * * $MY_PATH/../cron_MINUTE.sh >> /tmp/astroport.log 2>&1" >> /tmp/mycron && crontab /tmp/mycron \
|
||||
else
|
||||
echo "Cannot operate, please check crontab -l" && exit 1
|
||||
echo "No operation needed. Your crontab is: " && crontab -l
|
||||
fi
|
||||
# Clean
|
||||
rm -f /tmp/mycron
|
||||
|
|
Loading…
Reference in New Issue