On Fri, 10 Apr 2009 22:34:47 +0200 Floor Terra <[email protected]> wrote:

> Hi,
> 
> I'm trying to automate some parts of ifconfig and discovered
> py-openbsd. Py-openbsd looks great but I can't use it to scan for
> wireless access points.
> 
> Is there any sort of ifconfig API? I don't really care about the
> language.
> 
> Floor

Floor,

ifconfig is a constantly moving target. For example, if you look at the
'current' web page (http://www.openbsd.org/faq/current.html) you'll see
two syntax changes in the last six months.

The best you can do in a situation like this is use an exec/system call
from your chosen language (sh, perl, python, ...), and remember to read
the new man page and test your code on each new release.

-- 
J.C. Roberts

Reply via email to