[macOS]在macOS下开启at命令

atrun_plist=/System/Library/LaunchDaemons/com.apple.atrun.plist
sudo sed -i '' 's/true/false/g' $atrun_plist
sudo launchctl unload -F $atrun_plist
sudo launchctl load -F $atrun_plist

这样就开启了。

echo 'say Pomodoro is over. Take a break && growlnotify -s -m "take a break"' | at now + 25 minutes
echo 'heroku pipeline:promote && say "Site pushed to production on schedule"' | at 15:30
echo 'brew update && say Homebrew updated three days after that package you wanted was to be updated && brew upgrade that-package && say that-package updated from Homebrew' | at 4pm + 3 days
 
 
posted @ 2024-10-30 02:20  hh9515  阅读(9)  评论(0编辑  收藏  举报