Ads 468x60px

##EasyReadMore##

13 6月, 2018

ArchLinux 上的排程

# 安裝 crontab
pacman -S cronie

# 啟動 cronie
systemctl start cronie
# 設定開機時啟動
systemctl enable cronie

# 設定工作排程
crontab -e

# 晚上11點關閉程式 ,早上8點開啟程式
00 23 * * * killall -9 AirBox ;./lcdi2c -i
00 08 * * * ./AirBox &

# Example of job definition:
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name  command to be executed

0 意見:

張貼留言

 
Blogger Templates