skip to main
|
skip to sidebar
Midi at Work
Showing posts with label
linux
.
Show all posts
Showing posts with label
linux
.
Show all posts
Thursday, January 3, 2019
crontab的设置
1. 修改crontab文件: sudo vim /etc/crontab
2. 修改完毕之后需要重启crontab 服务: sudo service cron restart
3. crontab执行的内容打印到log文件(用于debug)
13 15 * * * root cd /home/yourpath; sh runme.sh >> logme.log 2>&1
在/home/yourpath/生成logme.log文件,可以查看crontab运行时的输出。用于debug
4. 在crontab中设置环境变量:
crontab并不自动的使用user自己的环境变量。需要显示的设置.
Older Posts
Home
Subscribe to:
Comments (Atom)
About Me
midi
Tokyo, Japan
View my complete profile
Labels
c++
(2)
concept
(7)
conference
(1)
course
(1)
dependency parsing
(1)
FeatureSelection
(1)
kernel method
(2)
KP
(1)
latex
(12)
linux
(1)
Math_eg
(1)
NLP
(4)
NLP101
(5)
note
(1)
parser
(1)
query
(1)
quickRef
(1)
reading
(1)
survey
(1)
svm
(1)
Tech
(2)
todo
(2)
vocabulary
(4)
WhatIsSemantic
(3)
work
(5)
Blog Archive
▼
2019
(1)
▼
January
(1)
crontab的设置
►
2008
(5)
►
March
(1)
►
February
(1)
►
January
(3)
►
2007
(40)
►
December
(2)
►
November
(1)
►
October
(1)
►
September
(1)
►
August
(5)
►
July
(3)
►
June
(3)
►
May
(7)
►
April
(4)
►
March
(7)
►
February
(4)
►
January
(2)
►
2006
(7)
►
December
(5)
►
November
(2)
SITE INFO