Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
求 crontab任务计划的详细教程
Experiences and Insight
1997
views ·
3
replies ·
To
floor
Go
leixiaozeng
deepin
2016-12-19 18:39
Author
昨天在网上,搜了一天,但是总是感觉跟DEEPIN 的系统不一样,而且都没有成功过,百科里也找不到,有知道怎么设置的吗?真心求教。
Reply
Like 0
Favorite
View the author
All Replies
jingle
deepin
2016-12-19 20:39
#1
https://wiki.deepin.org/index.ph ... 8%E7%A8%8B%E5%BA%8F
Reply
Like 0
View the author
151******55
deepin
2016-12-23 20:17
#2
跟别的linux有啥不一样的?
格式是
分 时 日 月 星期 要运行的命令
例如
* * * * * echo '123' >> /tmp/123.txt
每分钟向/tmp/123.txt内追加写入123
*/10 * * * * echo '123' >> /tmp/123.txt
每10分钟向/tmp/123.txt内追加写入123
1 */2 * * * echo '123' >> /tmp/123.txt
每隔2小时的第1分钟向/tmp/123.txt内追加写入123
1 10,12 * * * echo '123' >> /tmp/123.txt
10点01分和12点01向/tmp/123.txt内追加写入123
等等
Reply
Like 0
View the author
宾利
deepin
2016-12-25 03:37
#3
写成文件后 执行 crontab 123.txt
就可以了
查看 是 crontab -l
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More