A shock-wave flow of a gas driven by harmonic oscillations of a piston in a closed cylindrical tube has been studied using numerical integration of the narrow-channel model equations in the flow regimes characterized by moderate Mach and Reynolds numbers. The structure of a stationary motion of the gas at various moments of the cycle is presented by radial profiles of the longitudinal velocity component and the temperature.