Friday, 13 April 2018

macos - How can I write a cron job that will block my internet from 7pm to 7am? (So I can get some sleep)

I am using OSX 10.6 and it has cron built in. How can I write a cron job that will block my internet from 7pm to 7am every day?


Im sure this must be simple but I could only find one example online and it didn't work. It said to:


set /etc/hosts.allow file to 
be empty
set hosts.deny file to
ALL : ALL

I did this and google still came up.

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...