shell於特定日期執行特別指令 - MAC

Table of Contents


請問一下,不使用「系統偏好設定」裡的「使用者與群組」的「登入選項」的話,
要讓該使用者登入後於特定日期裡,執行特定的指令 (舉例來說,清除垃圾桶)的話,
這應該是用shell script的功能來實現是吧?
有沒有善心人士能寫一個範例?
感謝~

--

Live simply. Love generously. Care deeply. Speak kindly.

--

All Comments

Victoria avatarVictoria2016-12-05
crontab
Xanthe avatarXanthe2016-12-07
用 cron 比較快吧
Valerie avatarValerie2016-12-12
crontab最方便啊
Kristin avatarKristin2016-12-12
謝謝幾位回覆,我查了一下cron雖然還有支援,
Skylar DavisLinda avatarSkylar DavisLinda2016-12-16
但apple好像比較建議使用lanuchdaemons。