Having lots of trouble with this for some reason. I want to specify a read filter for tshark in a batch file and can't figure out how to escape it.
Here's what I want to do:
This would ideally then mean I could do this:
However, the "!" is being interpreted wrong and I can't figure out how to escape the damn thing:
Anyone have any suggestions? Thanks. This is Win7 cmd.exe.
Here's what I want to do:
Code:
set tshark_options=-n -2 -R (sip.Method == "NOTIFY" && !(sip.Event == "line-seize") && !(sip.Event == "message-summary"))
This would ideally then mean I could do this:
Code:
C:\Users\lgn\Dropbox\scripts\countNOTIFYs>echo %tshark_options%
-n -2 -R (sip.Method == "NOTIFY" && !(sip.Event == "line-seize") && !(sip.Event == "message-summary"))
However, the "!" is being interpreted wrong and I can't figure out how to escape the damn thing:
Code:
C:\Users\lgn\Dropbox\scripts\countNOTIFYs>set tshark_options=-n -2 -R (sip.Method == "NOTIFY" && !(sip.Event == "line-seize") && !(s
ip.Event == "message-summary"))
'!' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\lgn\Dropbox\scripts\countNOTIFYs>set tshark_options=-n -2 -R (sip.Method == "NOTIFY" && ^!(sip.Event == "line-seize") && ^!
(sip.Event == "message-summary"))
'!' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\lgn\Dropbox\scripts\countNOTIFYs>set tshark_options=-n -2 -R (sip.Method == "NOTIFY" && !!(sip.Event == "line-seize") && !!
(sip.Event == "message-summary"))
'!!' is not recognized as an internal or external command,
operable program or batch file.
Anyone have any suggestions? Thanks. This is Win7 cmd.exe.
Users\lgn\Dropbox\scripts\countNOTIFYs>set tshark_options=-n -2 -R (sip.Method == "NOTIFY" && ^^!(sip.Event == "line-seize") && ^