Ethereal-users: [Ethereal-users] shell variable in tethereal display filter

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Tue, 27 Sep 2005 17:22:43 +0000
Hi –

I am using tethereal in a shell script to filter a capture file. I would like to use a shell variable as part of the display filter, as in the following:

IP_SRC= xxx.xxx.xxx.xx
....
tethereal -r $CAPTURE_FILE -z sip,stat,'ip.src==$IP_SRC'

When I run the script the value for $IP_SRC is not substituted correctly in the filter. 

Is there a correct syntax for using a variable in the filer string?

Thanks
JLee