Programmatically changing network proxy settings on the Mac

Python Nutter pythonnutter at gmail.com
Thu Feb 12 00:59:46 EST 2009


OS X is POSIX/UNIX system so your basic plan of going about things:
1. Learn what proxy/network subsystem Tiger uses
2. Learn what proxy/network subsystem Leopard uses (same as 1., or has
it changed?)
3. Based on 1 and 2 learn the config file names and locations.
4. Based on 3 you will determine if the file is text or xml format so
learn file processing for whichever one
5. Read the config file, Make some changes in OS X, read the config
file and compare changes.
6. Programatically script changes to those config file(s).
7. Learn if any service/daemon needs to be restarted or if an
interface needs to be brought down/up to bring in those changes to the
config file.
8. Script in what you learned in 7.
9. Finished.

2009/2/11  <arunasunil at gmail.com>:
> Hi,
>
> Anybody have suggestions of how network proxy settings can be changed
> programmatically on the Mac, Tiger and Leopard. Are there any helpful
> python api's that can be used.
>
> Thanks
> Sunil
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list