perlknight has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl my $CMD = "/sbin/iptables"; my $arg1 = "-A INPUT -p tcp -m multiport \--dport 80,8080"; my $arg2 = "-s 10.10.10.10 -j DROP"; system("$CMD", "$arg1", "$arg2") == 0 or die "can't fork: $!\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem with system function
by Kanji (Parson) on Dec 05, 2002 at 19:44 UTC | |
|
Re: problem with system function
by pfaut (Priest) on Dec 05, 2002 at 19:45 UTC | |
|
Re: problem with system function
by BrowserUk (Patriarch) on Dec 05, 2002 at 19:43 UTC |