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 Super User
See other posts from Super User
or by user242065
Published on 2010-06-12T03:31:29Z
Indexed on
2010/06/14
0:43 UTC
Read the original article
Hit count: 198
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.
© Super User or respective owner