A system for generating a chlorine-containing compound, said system comprising: an anodic chamber comprising an anodic electrode and having an inlet and an outlet; a cathodic chamber spaced from and adjacent said anodic chamber, said cathodic chamber comprising a cathodic electrode and having an inlet and an outlet; a membrane disposed between and separating said anodic chamber and said cathodic chamber; a brine chamber having an anodic electrode and a cathodic electrode spaced from said anodic electrode, said brine chamber having an inlet for receiving a first aqueous salt solution and an outlet; a first power supply coupled to and in electrical communication with said cathodic electrode of said cathodic chamber and said anodic electrode of said anodic chamber; and a second power supply which is the same as or different from said first power supply, said second power supply being coupled to and in electrical communication with said anodic and cathodic electrodes of said brine chamber; a microprocessor coupled to and in electrical communication with at least one of said first and second power supplies for measuring and/or controlling in real time amperage and/or potential difference between said anodic and cathodic electrodes of said brine chamber and between said anodic electrode of said anodic chamber and said cathodic electrode of said cathodic chamber; wherein said outlet of said brine chamber is coupled to and in fluid communication with one of said inlet of said anodic chamber and said inlet of said cathodic chamber; wherein the other of said inlet of said anodic chamber and said inlet of said cathodic chamber is for receiving a second aqueous salt solution the same as or different from the first aqueous salt solution; and wherein the chlorine-containing compound is generated in one of said anodic chamber and said cathodic chamber and recovered from one of said outlet of said anodic chamber and said outlet of said cathodic chamber. an anodic chamber comprising an anodic electrode and having an inlet and an outlet; a cathodic chamber spaced from and adjacent said anodic chamber, said cathodic chamber comprising a cathodic electrode and having an inlet and an outlet; a membrane disposed between and separating said anodic chamber and said cathodic chamber; a brine chamber having an anodic electrode and a cathodic electrode spaced from said anodic electrode, said brine chamber having an inlet for receiving a first aqueous salt solution and an outlet; a first power supply coupled to and in electrical communication with said cathodic electrode of said cathodic chamber and said anodic electrode of said anodic chamber; and a second power supply which is the same as or different from said first power supply, said second power supply being coupled to and in electrical communication with said anodic and cathodic electrodes of said brine chamber; a microprocessor coupled to and in electrical communication with at least one of said first and second power supplies for measuring and/or controlling in real time amperage and/or potential difference between said anodic and cathodic electrodes of said brine chamber and between said anodic electrode of said anodic chamber and said cathodic electrode of said cathodic chamber; wherein said outlet of said brine chamber is coupled to and in fluid communication with one of said inlet of said anodic chamber and said inlet of said cathodic chamber; wherein the other of said inlet of said anodic chamber and said inlet of said cathodic chamber is for receiving a second aqueous salt solution the same as or different from the first aqueous salt solution; and wherein the chlorine-containing compound is generated in one of said anodic chamber and said cathodic chamber and recovered from one of said outlet of said anodic chamber and said outlet of said cathodic chamber. <EOS>