crontab執行無效的問題 - Linux
By Cara
at 2020-12-25T16:49
at 2020-12-25T16:49
Table of Contents
小弟有一個腳本是對ELK的index進行刪除的動作,單獨執行腳本是可以成功運作的。
但是如果透過crontab執行卻無法生效。
透過tail -f /var/log/syslog | grep CRON 查看log如下:
Dec 25 16:30:01 hostname CRON[19982]: (root) CMD (/etc/elasticsearch/delete_ES
_test.sh)
沒有報任何error,但也執行完也沒有效果。
一開始以為是MTA問題,但加上mailto=""也是不行。
有方法可以看為甚麼執行為沒有效果嗎??
謝謝
--
但是如果透過crontab執行卻無法生效。
透過tail -f /var/log/syslog | grep CRON 查看log如下:
Dec 25 16:30:01 hostname CRON[19982]: (root) CMD (/etc/elasticsearch/delete_ES
_test.sh)
沒有報任何error,但也執行完也沒有效果。
一開始以為是MTA問題,但加上mailto=""也是不行。
有方法可以看為甚麼執行為沒有效果嗎??
謝謝
--
Tags:
Linux
All Comments
By Christine
at 2020-12-26T18:46
at 2020-12-26T18:46
By Faithe
at 2020-12-28T06:56
at 2020-12-28T06:56
By Lauren
at 2020-12-29T09:00
at 2020-12-29T09:00
By Frederic
at 2020-12-29T23:04
at 2020-12-29T23:04
By Eden
at 2021-01-03T02:05
at 2021-01-03T02:05
By Elma
at 2021-01-04T12:03
at 2021-01-04T12:03
By Delia
at 2021-01-07T17:15
at 2021-01-07T17:15
By Tracy
at 2021-01-11T07:13
at 2021-01-11T07:13
By Edward Lewis
at 2021-01-13T06:12
at 2021-01-13T06:12
By Ingrid
at 2021-01-15T03:50
at 2021-01-15T03:50
By Connor
at 2021-01-19T14:38
at 2021-01-19T14:38
By Heather
at 2021-01-20T05:13
at 2021-01-20T05:13
By Madame
at 2021-01-21T07:04
at 2021-01-21T07:04
By Oliver
at 2021-01-24T08:53
at 2021-01-24T08:53
By Hardy
at 2021-01-28T12:58
at 2021-01-28T12:58
By Carolina Franco
at 2021-01-31T22:52
at 2021-01-31T22:52
Related Posts
語音軟體
By Sandy
at 2020-12-20T21:20
at 2020-12-20T21:20
Ubuntu新版的問題開機system bootOrder
By Jack
at 2020-12-20T20:35
at 2020-12-20T20:35
從多個資料夾內複製連續檔案
By Connor
at 2020-12-17T11:08
at 2020-12-17T11:08
從多個資料夾內複製連續檔案
By Andrew
at 2020-12-17T10:21
at 2020-12-17T10:21
有辦法改快捷鍵嗎?
By Frederica
at 2020-12-15T00:13
at 2020-12-15T00:13