I need procomm to capture the screen text everytime there is a dial in connection. So I need capture to turn on when connection in made and turn off when dissconnected so file will save. I have tryed may scripts but can't seem to get one to turn capture on.
The when command would call the procedure check carrier whenever the value of $CARRIER changes. This procedure would look something like this:
proc check_carrier
if $CARRIER == 1
capture on
elseif $CAPTURE != 0
capture off
exit
endif
endproc
This procedure will open your capture file whenever $CARRIER changes to 1 (indicating an open connection) and will close any open capture file when $CARRIER indicates there is no longer a connection. Hopefully that gives you some ideas to use in your script.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.