Since your CVSROOT environment variable is NOT set, you'll have to do a cvs -d :pserver:<etc> <cvs command> every time.
You don't have the c-shell, but the bash shell, hence the bash error. Try > set CVSROOT=:pserver:<etc> > export CVSROOT You can add these lines in your /homedir/.bashrc file. -chris >-----Original Message----- >From: Hong, Yi [mailto:[EMAIL PROTECTED] >Sent: Wednesday, April 20, 2005 5:33 PM >To: Jason Viers; Fouts Christopher (IFNA MP DC) >Cc: info-cvs@gnu.org >Subject: RE: What should I do with CVS after IP address changed > > >I was able to check out with the new IP address by using the >command: "cvs -d >:pserver:[EMAIL PROTECTED]:/usr/local/cvs-rep co healthlink" > >But I still got the same error message after I tried to update >the file: > >"[EMAIL PROTECTED] images]# cvs update prevpic.gif >cvs [update aborted]: connect to cvs-rep(141.106.32.35):2401 >failed: Connection timed out" > >It seems that the system was still trying to connect to the >old IP address 141.106.32.35. > >When I tried to set my CVSROOT environment variable with the command > "setenv CVSROOT :pserver:141.106.210.35:/usr/local/cvs-rep", >I got the message "bash: setenv: command not found". > >We have a remote repository. The IP address was changed from >141.106.32.35 to 141.106.210.35 on the machine which can mount >the working directory (we called it test server). The >question is how to connect to the server with the new IP >address 141.106.210.35 instead of the old one(141.106.32.35). > >Thanks for your help, > >Yi > > > >-----Original Message----- >From: Jason Viers [mailto:[EMAIL PROTECTED] >Sent: Wednesday, April 20, 2005 2:07 PM >To: [EMAIL PROTECTED] >Cc: Hong, Yi; [EMAIL PROTECTED]; info-cvs@gnu.org >Subject: Re: What should I do with CVS after IP address changed > >[EMAIL PROTECTED] wrote: > > Either > > > > 1. set your CVSROOT environment variable in your startup scirpts > > appropriately. Ex, for c-shell's .cshrc file > > > setenv CVSROOT :<access type>:141.106.32.35:/your_cvs_path > > > > access type here is either pserver, rsh, ssh, etc. > > > > 2. Or from directly from command line > > > > > cvs co -d 141.106.32.35:/your_cvs_path blah_blah > > > > #1 is preferred. > >But in his situation, #2 is required. He needs to override >the cvs/Root > >files in his tree with the new server information: #2 will do that, #1 >won't. > >But yes, you still need the full CVSROOT in the command line, not just >the IP: > >cvs co -d :pserver:[EMAIL PROTECTED]:/path_to_repository co ... > >Jason > > > > > > >>-----Original Message----- > >>From: [EMAIL PROTECTED] > >>[mailto:[EMAIL PROTECTED] > >>] On Behalf Of Hong, Yi > >>Sent: Wednesday, April 20, 2005 1:57 PM > >>To: Jim.Hyslop; info-cvs@gnu.org > >>Subject: RE: What should I do with CVS after IP address >changed >> >> >>Thanks, Jim! >> >>I tried to check out >with the command "cvs -d 141.106.32.35 co >>healthlink" but >got the following message: >> >>Cvs checkout: CVSROOT >"141.106.32.35" must be an absolute >>pathname Csv [checkout >aborted]: Bad CVSROOT. >> >>Any idea about this? Could you >please let me know how to check >>out a fresh copy with >$CVSROOT set to the new machine? >> >> >>Yi >> >>>-----Original Message----- > >>From: Jim.Hyslop [mailto:[EMAIL PROTECTED] > >>Sent: Tuesday, April 19, 2005 2:43 PM > >>To: Hong, Yi; info-cvs@gnu.org > >>Subject: RE: What should I do with CVS after IP address >changed >> >>Hong, Yi wrote: >> >>>I got the following >error message after I tried "cvs update" >command: > >>> > >>>cvs [update aborted]: connect to cvs-rep(141.106.32.35):2401 > >>>failed: Connection timed out > >>> > >>>We just readdressed IP of our test server. We are using >CVS >>>to transfer modified files from test server to >production >>>server. I think I need to update the IP address >somewhere in >>>one of CVS administrative files but couldn't >find it. >> >>First of all, don't use the server's IP >address, use its name. >>That will prevent any future >problems like this. >> >>The easiest thing to do is simply >check out a fresh copy with >>your $CVSROOT set to the new >machine. >> >>If you have outstanding changes that need to >be checked in, >>then use the -d > >>option: > >> > >>cvs -d :pserver:[EMAIL PROTECTED]:/path_to_repository commit >> > >>-- > >>Jim Hyslop > >>Senior Software Designer > >>Leitch Technology International Inc. ( >http://www.leitch.com ) >>Columnist, C/C++ Users Journal ( >http://www.cuj.com/experts ) >> >> >>>_______________________________________________ > >>Info-cvs mailing list > >>Info-cvs@gnu.org >>http://lists.gnu.org/mailman/listinfo/info-cvs > >> > > > > > > > > _______________________________________________ > > Info-cvs mailing list > > Info-cvs@gnu.org > > http://lists.gnu.org/mailman/listinfo/info-cvs > _______________________________________________ Info-cvs mailing list Info-cvs@gnu.org http://lists.gnu.org/mailman/listinfo/info-cvs