How should airline pilots find out about military activity along their route?
Military operations are conducted in certain airspace blocks that should be well marked on your charts.  If you are IFR your route should avoid such areas, if you are VFR, hope you know what you are doing.