I have Procomm booting up with capture on and have been trying to write a script to cut the capture off at midnight and then back on moments later. I found the script listed below and complied it OK but when I try checking it by changing the date it does not work.
PROC MAIN
when $date call PROC newdate
endproc
PROC newdate
capture off
capture on
endproc
Can anyone help?
PROC MAIN
when $date call PROC newdate
endproc
PROC newdate
capture off
capture on
endproc
Can anyone help?