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

Posted by user242065 on Stack Overflow See other posts from Stack Overflow or by user242065
Published on 2010-06-12T03:31:29Z Indexed on 2010/06/12 3:42 UTC
Read the original article Hit count: 163

Filed under:
|
|

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 flie to 
be empty 
set hosts.deny file to
ALL : ALL

I did this and google still came up.

© Stack Overflow or respective owner

Related posts about macosx

Related posts about cron