NetRunner Readme

Introduction

This is NetRunner version 0.0.1, which can run scripts when certain network status changes.

NetRunner is released under the MIT license, the full text of which is below.

Installation and use

To start using NetRunner:

  1. Save NetRunner.app somewhere, perhaps /Applications/Utilities.
  2. Launch it. Just double-click it as you would with anything else.
  3. Verify it's running by looking for it in the Activity Monitor's list of running applications or looking for its output in Console.app.
  4. In your home folder a NetRunner folder should have been created. Placing scripts in the created subfolders will cause that script to run when that network action occurs. For example, a script placed in ~/NetRunner/IPAddress/Aquire will execute whenever a new IP address is acquired by your system (such as when joining a new wireless network).
  5. Make it run on startup by going to Accounts within your System Preferences and adding it to your account's "Startup Items" tab.

Known Problems

  1. Will run a program or script as much as needed which means the scripts may have to be carefully written to avoid repeatedly running things that should not be run. Be warned!
  2. Cannot run aliases or normal OSX application bundles (since they are actually directories).
  3. Inherited from NetGrowler: It expects a Ethernet interface at "en0". If your system has only an AirPort, this might cause problems. (See the "XXX" in EthernetObserver.m.)

Feel free to fix anything you think needs fixing and send patches to myself (Sean) and/or Scott depending upon the nature of the fix.

Future Enhancements

Some enhancements that might be nice:

  1. A SystemPreferences pane might be nice.
  2. Ability to start programs that are normal application bundles or aliases.

You're welcome to send patches for new features, too.

Acknowledgements

NetRunner was built with the inspiration and source code of NetGrowler by Scott Lamb.

License

Copyright © 2004–2005 Scott Lamb <slamb@slamb.org> and Copyright © 2005 Sean Heber <sean@fifthace.com>.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.