You can specify the password in the -d (CVSROOT) switch ( ...;password=mypass;... ). Generally speaking, you could try something like "echo mypassword | cvs login ...", but in some instances this will not work since some programs will open the console directly instead of relying on their stdin.