Code:
#!/bin/csh
fetch -i /tmp/german.zone -o /tmp/german.zone "http://www.ipdeny.com/german.zone"
sed -i '' "s/;.*//" /tmp/german.zone
ipfw table 2 flush
foreach IP ( `cat /tmp/german.zone` )
ipfw table 2 add $IP
end
I got this code but get the error that the file name is exogenous showing /tmp/german
I changed german to german.txt
the url fetch is correct and deliberately put a wrong path. The issue is that ipfw spits that error out and refuses to populate the table.
it spits out:
ipfw: exogenous filename argument. I then check the tables and find no ip addresses added.
Any ideas as to why I am getting this error?