Date: Tue, 23 Aug 2005 11:57:52 +0300 From: Ruslan Ermilov <ru@freebsd.org> To: vladone <vladone@spaingsm.com> Cc: freebsd-ipfw@freebsd.org, freebsd-questions@freebsd.org Subject: Re: error when use table option with ipfw Message-ID: <20050823085752.GB15272@ip.net.ua> In-Reply-To: <163971811.20050823111033@spaingsm.com> References: <163971811.20050823111033@spaingsm.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--7ZAtKRhVyVSsbBD2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 23, 2005 at 11:10:33AM +0300, vladone wrote: > Hi! > I try to use table option but not work. > First, i use Freebsd 5.4 release. > In short i have: > cmd=3D"ipfw -q" >=20 > $cmd table 1 add 192.168.0.0/24 > $cmd table 1 add 192.168.2.0/24 > $cmd table 1 add 192.168.3.0/24 > $cmd table 1 add 192.168.4.0/24 >=20 > $cmd add 700 count ip from table(1) to any via $lif >=20 > When i run the script i receive an error about syntax error "ipfw.sh: 78:= Syntax error: "(" unexpected". > I dont understand where is error? > Need some compiler options to work with this option? > If i give: > #ipfw table 1 list > i have list of entries in this table without any error. >=20 Since this is a shell script, `(' has a special meaning to group commands for executing them in a sub-shell. To cancel a special meaning, you can prefix it with the `\' character. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --7ZAtKRhVyVSsbBD2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDCuUQqRfpzJluFF4RAt6iAKCRsnyObepoH8h1n/hnHtH0KiI+ZgCgirBN sglnsbu3begX+BYcONr0VD4= =s+FK -----END PGP SIGNATURE----- --7ZAtKRhVyVSsbBD2--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050823085752.GB15272>