crontab -e
發表於 : 2020年 12月 3日, 23:33
192.168.13.14 $ crontab -e
30 0 * * * "/home/leeyc/.acme.sh"/acme.sh --cron --home "/home/leeyc/.acme.sh" > /dev/null
# crontab -e
# >> /root/cron_ci.log 2>&1
# >> /root/cron_reboot.log 2>&1
#
# m h dom mon dow command
30 12 * * * /web/bakdb.sh > /dev/null
0 13 * * * /web/copy_mnt.sh > /dev/null
30 1 * * * /web/bakdb.sh > /dev/null
0 2 * * * /web/copy_mnt.sh > /dev/null
0 9 * * * /web/runci.sh > /dev/null
10 9 * * * /web/runci.sh > /dev/null
20 9 * * * /web/runci.sh > /dev/null
30 9 * * * /web/runci.sh > /dev/null
30 13 * * * /web/runci.sh > /dev/null
*/10 * * * * /web/singEngine.sh > /dev/null
*/60 * * * * /web/sendEngine.sh > /dev/null
#1 1 5 * * /home/leeyc/renew.sh > /dev/null
1 3 * * * /root/rebt_upd.sh > /dev/null
# m h dom mon dow command
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
0 9 * * * /usr/bin/php /var/www/html/Endia/crontab/CardImportRMS.php
10 9 * * * /usr/bin/php /var/www/html/Endia/crontab/CardImportRMS.php
20 9 * * * /usr/bin/php /var/www/html/Endia/crontab/CardImportRMS.php
30 9 * * * /usr/bin/php /var/www/html/Endia/crontab/CardImportRMS.php
30 13 * * * /usr/bin/php /var/www/html/Endia/crontab/CardImportRMS.php
*/10 * * * * /usr/bin/php /var/www/html/Enks/crontab/SignEngine.php
*/10 * * * * /usr/bin/php /var/www/html/Endia/crontab/SignEngine.php
leeyc@e14:/web$ cat runci.sh
#!/bin/bash
umount /web/ww1/card
mount -t cifs -o vers=3,username=data,password=184801 '\\192.168.13.13\card' /web/ww1/card
chown leeyc:leeyc /web/ww1/card -R
docker restart endia
docker exec -i endia /usr/bin/php /var/www/html/Endia/crontab/CardImportRMS.php
curl https://pm.endiamond.com:81/Endia/cront ... ompare.php
curl https://pm.endiamond.com:81/Endia/cront ... rnwork.php
#!/bin/bash
docker exec -i endia /usr/bin/php /var/www/html/Endia/crontab/SignEngine.php
docker exec -i finance /usr/bin/php /var/www/html/Endia/crontab/SignEngine.php
docker exec -i enks /usr/bin/php /var/www/html/Enks/crontab/SignEngine.php
$ sudo -s 要用ROOT權限執行
$ crontab -e
# m h dom mon dow command
30 12 * * * /web/bakdb.sh
0 13 * * * /web/copy_mnt.sh
30 1 * * * /web/bakdb.sh
0 2 * * * /web/copy_mnt.sh
0 9 * * * /web/runci.sh
10 9 * * * /web/runci.sh
20 9 * * * /web/runci.sh
30 9 * * * /web/runci.sh
30 13 * * * /web/runci.sh
*/10 * * * * /web/singEngine.sh
service cron status
service cron stop
service cron start
尹鑽入口網站 https://pm.endiamond.com
尹鑽生管系統 https://pm.endiamond.com:81/Endia/
尹鑽財務系統 https://pm.endiamond.com:82/Endia/
昆山友鑽精密設備 https://pm.endiamond.com:83/Enks/
尹鑽生管系統 測試區 http://pm.endiamond.com:84/Endia/
昆山友鑽 測試區 http://pm.endiamond.com:84/Enks/
sudo docker exec -d apache /etc/init.d/sendmail start
30 0 * * * "/home/leeyc/.acme.sh"/acme.sh --cron --home "/home/leeyc/.acme.sh" > /dev/null
# crontab -e
# >> /root/cron_ci.log 2>&1
# >> /root/cron_reboot.log 2>&1
#
# m h dom mon dow command
30 12 * * * /web/bakdb.sh > /dev/null
0 13 * * * /web/copy_mnt.sh > /dev/null
30 1 * * * /web/bakdb.sh > /dev/null
0 2 * * * /web/copy_mnt.sh > /dev/null
0 9 * * * /web/runci.sh > /dev/null
10 9 * * * /web/runci.sh > /dev/null
20 9 * * * /web/runci.sh > /dev/null
30 9 * * * /web/runci.sh > /dev/null
30 13 * * * /web/runci.sh > /dev/null
*/10 * * * * /web/singEngine.sh > /dev/null
*/60 * * * * /web/sendEngine.sh > /dev/null
#1 1 5 * * /home/leeyc/renew.sh > /dev/null
1 3 * * * /root/rebt_upd.sh > /dev/null
# m h dom mon dow command
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
0 9 * * * /usr/bin/php /var/www/html/Endia/crontab/CardImportRMS.php
10 9 * * * /usr/bin/php /var/www/html/Endia/crontab/CardImportRMS.php
20 9 * * * /usr/bin/php /var/www/html/Endia/crontab/CardImportRMS.php
30 9 * * * /usr/bin/php /var/www/html/Endia/crontab/CardImportRMS.php
30 13 * * * /usr/bin/php /var/www/html/Endia/crontab/CardImportRMS.php
*/10 * * * * /usr/bin/php /var/www/html/Enks/crontab/SignEngine.php
*/10 * * * * /usr/bin/php /var/www/html/Endia/crontab/SignEngine.php
leeyc@e14:/web$ cat runci.sh
#!/bin/bash
umount /web/ww1/card
mount -t cifs -o vers=3,username=data,password=184801 '\\192.168.13.13\card' /web/ww1/card
chown leeyc:leeyc /web/ww1/card -R
docker restart endia
docker exec -i endia /usr/bin/php /var/www/html/Endia/crontab/CardImportRMS.php
curl https://pm.endiamond.com:81/Endia/cront ... ompare.php
curl https://pm.endiamond.com:81/Endia/cront ... rnwork.php
#!/bin/bash
docker exec -i endia /usr/bin/php /var/www/html/Endia/crontab/SignEngine.php
docker exec -i finance /usr/bin/php /var/www/html/Endia/crontab/SignEngine.php
docker exec -i enks /usr/bin/php /var/www/html/Enks/crontab/SignEngine.php
$ sudo -s 要用ROOT權限執行
$ crontab -e
# m h dom mon dow command
30 12 * * * /web/bakdb.sh
0 13 * * * /web/copy_mnt.sh
30 1 * * * /web/bakdb.sh
0 2 * * * /web/copy_mnt.sh
0 9 * * * /web/runci.sh
10 9 * * * /web/runci.sh
20 9 * * * /web/runci.sh
30 9 * * * /web/runci.sh
30 13 * * * /web/runci.sh
*/10 * * * * /web/singEngine.sh
service cron status
service cron stop
service cron start
尹鑽入口網站 https://pm.endiamond.com
尹鑽生管系統 https://pm.endiamond.com:81/Endia/
尹鑽財務系統 https://pm.endiamond.com:82/Endia/
昆山友鑽精密設備 https://pm.endiamond.com:83/Enks/
尹鑽生管系統 測試區 http://pm.endiamond.com:84/Endia/
昆山友鑽 測試區 http://pm.endiamond.com:84/Enks/
sudo docker exec -d apache /etc/init.d/sendmail start