in reply to Passing an argument to an execute()ed script
I don't know the ssi-module, but try this:
$ssi->exec(cgi => "http://myscript.cgi?ip=$ip_address");
Then the ip_address is the parameter for 'ip'...
With single quotes your variable isn't interpolated.