i would like to do some process, that will block some IP that stores in variables. The syntax that i wrote:
[status4,cmdeks2] = system("sudo tail -1 /var/log/apache2/access.log | cut -d ' ' -f 1");
lm = system(['sudo iptables -A INPUT -s' cmdeks ' -j DROP '])
the cmdeks 2 itself is some IP:
192.168.88.10
But it return some error, that matlab output:
/bin/bash : line 1: -j: command not found
How do i put that cmdeks in the system syntax?
