3 # login_cvs host password
 
   5 set user    [lindex $argv 0]
 
   6 set pass    [lindex $argv 1]
 
   7 set host    [lindex $argv 2]
 
   8 set cvsroot [lindex $argv 3]
 
   9 set module  [lindex $argv 4]
 
  10 set dir     [lindex $argv 5]
 
  14 send_user "checkout module $module";
 
  20         send_user "Key accepted";
 
  24         send_user "Key accepting dont needed";
 
  28 spawn cvs -d :ext:$user@$host:$cvsroot co -N -d $dir $module
 
  34                 send_user "<h3><font color=red>cvs checkout $module failed. Incorrect password</font></h3>";
 
  38                  send_user "<h3><font color=red>cvs checkout $module failed.</font></h3>";
 
  42             if {[lindex [wait] 3]} {
 
  43                 send_user "<h3><font color=red>cvs checkout $module failed.</font></h3>"
 
  51          send_user "<h3><font color=red>cvs checkout $module failed.</font></h3>";