cvs setup

When I type in command

cvs -d co [dirname]

using bash shell on my local linux machine to check out what's in the remote cvs repository, I get

Unknown command: 'dirname'

What are the possible reasons for getting this?


Details of what I did:

I have added

Host [IPAddress]
HostName [host name]
User [login name]

to /root/.ssh/config

and I've also set environment variable as

export CVS_RSH=ssh
export CVSROOT=:ext:[host name]:/[root dir of repository]/CVSROOT

and finally, in order for these values to be set every time I use the computer, I put these export commands in the file (~/.bashrc) that loads my local setting at startup.

Then I typed in the command: cvs -d co [dirname]
skyblue01Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Alf666Connect With a Mentor Commented:
Yes. Get rid of the CVSROOT in the env var :

export CVSROOT=:ext:[host name]:/[root dir of repository]

0
 
Alf666Commented:
Why "cvs -d" ??? "-d" indicates a CVS root dir. The following should work :

cvs co dirname
0
 
skyblue01Author Commented:
Thanks, once I ssh into the remote machine and type: cvs co [dirname], I get

Cannot access /[root dir of repository]/CVSROOT/CVSROOT

Is there something wrong with the way I set CVSROOT above?

i.e. export CVSROOT=:ext:[host name]:/[root dir of repository]/CVSROOT

or anything else?
0
 
skyblue01Author Commented:
Thanks Alf666.   It works now.
0
 
Alf666Commented:
I know :-))))))))))))))))))
0
All Courses

From novice to tech pro — start learning today.