This paper considers the problem of regulating a linear dynamical system subject to external disturbances to the solution of a convex optimization problem with an unknown or partially-known cost. Our results demonstrate exponential input-to-state stability of the closed-loop system with our gradient-flow based controller.