In this paper a modular wheel less snake-like robot by considering viscous friction is modeled. The motion equations of the robot are derived. Then by imitating a real snake motion, the robot is controlled on the way that tracks the predefined trajectory. The controller controls the center of mass and global orientation. The motion of the robot is simulated for tracking a line and a sine curve. It is shown that the robot tracks the trajectories smoothly.