Re: How to call system command

On Sun, 22 Oct 2000 12:23:27 Terry Ha wrote:
> Hi,
> I want to write a GTK+ application that utilize the "IPCHAINS".  I want
> to know how to call system command, such as "ipchains -A input -d
> -j DENY" and "clear".  Pls answer this question, because it
> is urgent.

system() is perfectly good answer to that question, even, it can be better to 
use ipchains API (does it have any?). Or, iptable :) (Linux really cool in that
- ipfwm, ipchains, iptables - interfaces to the IP filtering are changing from 
each stable version).

Also, I suspect, that Alan Cox(maybe, someone heard this name :) implemented such
tool with GTK year(s) ago... And, at least, something similar I've seen on tucows
So, just take a look, will not it happen, that you duplicating existing tools ;)

WBR, Timur Bakeyev.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]