Help for this page

Select Code to Download


  1. or download this
    system("$CMD $arg1 $arg2");
  2. or download this
    my $CMD = "/sbin/iptables";
    my @arg1 = qw( -A INPUT -p tcp -m multiport --dport 80,8080 );
    my @arg2 = qw( -s 10.10.10.10 -j DROP );
    
    system($CMD, @arg1, @arg2) == 0 or die "can't fork: $!\n";