Back
File:

 • getofftheinet.p
Example:

What it does

Disables the airport on a Mac for a given number of minutes.
The chances of it generating anything at all are pretty slim, but it would be nice if it did!
How it works

Using Terminal commands it is possible to disable the airport on a Mac, I couldn't make myself stay from going on the internet so I decided to make a script to make me.
The script takes 1 argument, this is the number of minutes you want it to work for, once this is done it will ask for your password and then disable the airport, even if you turn it back on it will check and turn it back off. After the time you entered is up it will turn the airport back on for you.
To run it will need sudo privileges to turn the airport off, you can run with:
sudo perl getofftheinet.p <minutes>
It will then ask how long you want it to be turned off for, then ask for a password. Once the password is entered it will start working and tell you when it has been turned off and when it is turned back on.
It needs to be run from Terminal so you need to be able to find the file and get to that directory in Terminal, there are instructions at the top of the file.