ubuntu登出後crontab無法執行 - Linux

By Dora
at 2017-07-30T22:34
at 2017-07-30T22:34
Table of Contents
如標題,我想要使用crontab週期性的執行python code
有使用過crontab -e或者是vim /etc/crontab
以下是我的指令
00 21 * * * root cd /home/test/python/ && /home/test/anaconda3/bin/python
/home/test/python/pythontest.py > test.log 2>&1
假如我保持登入時時間到了會自動執行
但只要一登出之後crontab就沒有反應了
想知道要怎麼解決這個問題?
或者是有甚麼替代方案可以使用呢?
--
有使用過crontab -e或者是vim /etc/crontab
以下是我的指令
00 21 * * * root cd /home/test/python/ && /home/test/anaconda3/bin/python
/home/test/python/pythontest.py > test.log 2>&1
假如我保持登入時時間到了會自動執行
但只要一登出之後crontab就沒有反應了
想知道要怎麼解決這個問題?
或者是有甚麼替代方案可以使用呢?
--
Tags:
Linux
All Comments

By Quintina
at 2017-08-04T14:09
at 2017-08-04T14:09

By Thomas
at 2017-08-06T17:34
at 2017-08-06T17:34

By George
at 2017-08-11T13:50
at 2017-08-11T13:50

By Noah
at 2017-08-16T11:11
at 2017-08-16T11:11

By Lauren
at 2017-08-20T13:39
at 2017-08-20T13:39

By Brianna
at 2017-08-21T07:01
at 2017-08-21T07:01

By Hardy
at 2017-08-23T16:28
at 2017-08-23T16:28

By David
at 2017-08-28T10:30
at 2017-08-28T10:30

By Una
at 2017-08-30T10:10
at 2017-08-30T10:10

By Edith
at 2017-08-30T15:13
at 2017-08-30T15:13

By Ophelia
at 2017-09-02T15:15
at 2017-09-02T15:15

By Christine
at 2017-09-03T01:28
at 2017-09-03T01:28
Related Posts
自製LiveCD 簡要過程

By Mason
at 2017-07-29T11:52
at 2017-07-29T11:52
請問要建構區域網路PC該從何開始?

By Belly
at 2017-07-28T17:43
at 2017-07-28T17:43
centos6.9 雙網卡請教

By Skylar Davis
at 2017-07-28T17:37
at 2017-07-28T17:37
Canonical 在調查大家習慣使用的軟體

By Freda
at 2017-07-28T15:39
at 2017-07-28T15:39
建立yum server問題

By Freda
at 2017-07-27T23:44
at 2017-07-27T23:44