Similarity solutions for the flow of a non-ideal gas behind a strong exponential shock driven out by a piston (cylindrical or spherical) moving with time according to an exponential law is obtained. Solutions are obtained, in both the cases, when the flow between the shock and the piston is isothermal or adiabatic. The shock wave is driven by a piston moving with time according to an exponential law. Similarity solutions exist only when the surrounding medium is of constant density. The effects of variation of ambient magnetic field, non-idealness of the gas, adiabatic exponent and gravitational parameter are worked out in detail. It is shown that the increase in the non-idealness of the gas or the adiabatic exponent of the gas or presence of magnetic field have decaying effect on the shock wave. Consideration of the isothermal flow and the self-gravitational field increase the shock strength. Also, the consideration of isothermal flow or the presence of magnetic field removes the singularity in the density distribution, which arises in the case of adiabatic flow. The result of our study may be used to interpret measurements carried out by space craft in the solar wind and in neighborhood of the Earth's magnetosphere.