[macOS]在macOS下開啟at命令

hh9515發表於2024-10-30
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
 

相關文章