Enter the cvs password in scripts without manual intervention, automatically

One of the things I have been looking for sometime to do is enter the password for cvs in my scripts and finally here\’s how to do it.

echo \”password\” |cvs login