guarinogabriel / Mac-CLI

 macOS command line tool for developers – The ultimate tool to manage your Mac. It provides a huge set of command line commands that automatize the usage of your Mac.
MIT License
8.86k stars 334 forks source link

Run Mac-CLI In The Background (Hourly, Daily, Weekly) #170

Closed slavakurilyak closed 2 years ago

slavakurilyak commented 4 years ago

As a developer, I want to run mac-cli hourly, so that I don't have to manually run $ mac update every time I start my macOS.

I tried two methods, but both didn't work.

Method 1 (Didn't Work)

$ crontab -e
@hourly echo "password" | sudo -S mac update

Method 2 (Didn't Work)

$ crontab -e
@hourly sudo -S <<< "password" mac update

Please advise.

slavakurilyak commented 3 years ago

Anyone? I would love to set mac update and let it run in the background

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.