Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Allow Location changes to trigger other events' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Allow Location changes to trigger other events
Authored by: cynikal on Jun 15, '06 08:54:03AM
I used to try doing this with the kicker but it didn't quite work as expected.. i really needed something like this at my old job, where i had to use a proxy for things like ssh, aim, etc (and things ilke ssh and at the time, aim didn't read system proxy prefereces, nor does firefox).. but anyway, is there any reason you're using python? you could easily do this using perl, or even sh!

scutil<<_EOF|awk '$1 ~ /UserDefinedName/ {print $3}'
show Setup:/          
exit
_EOF
heck couldn't you even use the scelect utility:

scselect 2>&1|awk '$1 ~ /\*/ {gsub("[()]","",$3);print $3}'


[ Reply to This | # ]