Attracting properties for one dimensional flows of a general barotropic viscous fluid. Periodic solutions