Linked Questions

1
vote
0answers
34 views

How can I use launchd to auto update brew? [duplicate]

I followed the instructions on the page Creating Launch Daemons and Agents and created (as root) my own plist file named com.personal.brew.plist and located in /Library/LaunchDeamons/: <?xml ...
10
votes
2answers
4k views

Is cron command supposed to work like this?

I've set up cron to run a script hourly but when I reboot cron does not work. Does this mean that I should run cron whenever I boot into my Mac? The cron command which I use cron 5 * * * * path/to/...
4
votes
3answers
4k views

How to completely block specific Wi-Fi SSID on macOS?

I'm looking for a way to totally blacklist a Wi-Fi network (by SSID) in macOS. And no, I promise you that I really (truly!) do not need to just have the computer "forget it" by removing it from the ...
4
votes
1answer
5k views

How to add startup program using Terminal?

Honestly, I'm finding Apple's launchctl and plist (XML?) usage to be somewhat confusing and overkill. Using Terminal, I just wanna say hey, macOS, start program.app at boot! or hey, macOS, start my /...
2
votes
2answers
670 views

How do I run an app using launchd at regular intervals?

I have an app which is written in AppleScripting language which checks if the S.M.A.R.T. status is 'Verified' if it is not then it will automatically show me a dialog alert. But I need it to run every ...
2
votes
2answers
573 views

Show dialog at login (bash script)

The idea is that when somebody logs in to my Mac, a popup will show up and the date/time are written to a log. I run the bash script from a cron job: @reboot ~/Develop/login.sh (I know about ...
1
vote
2answers
441 views

Launchd running an Applescript every two hours

I have written a small applescript that I would like to run automatically every 2 hours. I have thus written the following launchd daemon (probably it is an agent): <?xml version="1.0" encoding="...
1
vote
2answers
462 views

rsync cron job for backup not working

I'm trying to run a backup from one HDD to another at 10pm everynight on a Mac Pro. I have tested the rsync and it backups just fine outside of the cron table. Here is what I have and it's not running ...
1
vote
1answer
454 views

Running a script with administrator privileges from a standard client terminal

I have the strong feeling I'm trying to reinvent the wheel, but I did spend some time without finding an existing solution. I have an already working shell script with several sudos. Its first target ...
1
vote
0answers
447 views

launchD runs script every hour in between 8:00 to 17:00 on weekdays

launchD runs script every hour in between 8:00 to 17:00 hours on weekdays Mon to Fri. 8 to 17:00 = 9 times in a Day. Mon - Friday = 5 days Do I have to add StartCalendarInterval 9 X 5 = 45 times or ...
1
vote
1answer
244 views

how to start a mysql server on login

I currently use Valet to develop sites, and many of those sites need SQL databases. To host SQL databases, I run a mariaDB server from the Terminal. In order to start the MySQL server so that I can ...
1
vote
1answer
204 views

Can't open crontab

I tried running crontab on my Mac for the first time and got the following: $ crontab -e crontab: no crontab for User - using an empty one crontab: subl -w: No such file or directory crontab: "subl -...
1
vote
1answer
294 views

launchctl config file location?

I'm trying to configure a NetBoot image so that a script will automatically launch on the target machine after it boots from the image I've been using this article as a reference: https://medium.com/...
-3
votes
2answers
129 views

Irreversible way to block Internet access on Mac for certain periods of time

I am looking for a way to restrict Internet access for specified periods of time that I decide on so that I, the admin, cannot access the internet during the restricted time period, and that I also ...
2
votes
1answer
82 views

Run backup script at any time every weekend (using launchd?)

I recently lost configuration of one of my IDEs (deleted it myself, I am very smart). I had a backup but it was a few months old. I have a script to backup all my config and push it to GitHub. I was ...

15 30 50 per page