Shell Script to set Proxy server settings in 10.4

This shell script will set the default proxy server in our OS X 10.4 client. In OS X 10.5 the network setup binary was moved to /usr/sbin/networksetup, so you would have to alter this script accordingly.

#!/bin/sh

BYPASSPROXY='Insert your proxy server here'

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/networksetup -setproxybypassdomains "AirPort" $BYPASSPROXY
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/networksetup -setproxybypassdomains "Built-in Ethernet" $BYPASSPROXY