# Trying to do cvs updates inside back accent environments

**URL:** <https://www.ruby-forum.com/t/trying-to-do-cvs-updates-inside-back-accent-environments/78138>\
**Category:** Ruby\
**Created:** [March 7, 2006, 11:59pm UTC](https://www.ruby-forum.com/t/trying-to-do-cvs-updates-inside-back-accent-environments/78138 "2006-03-07T23:59:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xeno\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/958977/32.png) [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Post date:** [March 7, 2006, 11:59pm UTC](https://www.ruby-forum.com/t/trying-to-do-cvs-updates-inside-back-accent-environments/78138/1 "2006-03-07T23:59:15Z")

</div>

I am unable to do: `cd somewhere ; cvs update`

because it doesn’t like the cd, and possibly not the ;. I also get a  
strange  
blowup when I do:

```
		`cvs update somewhere`

```

where it says: Protocol error: ’  
Protocol error: ‘Directory’ missingE Protocol error: ‘Directory’  
missingE

and on and on…

Can you please suggest something. I need to make this work, and I’m not  
finding it obvious in any way.

xc

---

<div class="post-metadata">

**Author:** ![Xeno\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/958977/32.png) [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Post date:** [March 8, 2006, 12:08am UTC](https://www.ruby-forum.com/t/trying-to-do-cvs-updates-inside-back-accent-environments/78138/2 "2006-03-08T00:08:20Z")

</div>

Xeno C. wrote:

> …  
> Can you please suggest something. I need to make this work, and I’m not  
> finding it obvious in any way.

Off the top of my head: User full paths for the cvs binary and the  
target file or directory

---

<div class="post-metadata">

**Author:** ![Xeno\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/958977/32.png) [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Post date:** [March 8, 2006, 12:17am UTC](https://www.ruby-forum.com/t/trying-to-do-cvs-updates-inside-back-accent-environments/78138/3 "2006-03-08T00:17:27Z")

</div>

On Mar 7, 2006, at 5:57 PM, Xeno C. wrote:

> missingE
> 
> and on and on…
> 
> Can you please suggest something. I need to make this work, and  
> I’m not  
> finding it obvious in any way.
> 
> xc

Dir.chdir, preferably with a block.  
e.g:  
irb(main):001:0\> Dir.pwd  
=\> “/Users/logan/Projects/Ruby Experiments”  
irb(main):002:0\> Dir.chdir("/") { puts Dir.pwd; `ls` }  
/  
=\> “Applications\nApplications (Mac OS 9)\nDesktop DB\nDesktop DF  
\nDesktop Folder\nDeveloper\nLibrary\nNetwork\nPrevious Systems  
\nSystem\nSystem Folder\nTheVolumeSettingsFolder\nUser Guides And  
Information\nUsers\nVolumes\nautomount\nbin\ncores\ndev\netc\nmach  
\nmach.sym\nmach\_kernel\nprivate\nsbin\nsw\ntmp\nusr\nvar\n”  
irb(main):003:0\> Dir.pwd  
=\> “/Users/logan/Projects/Ruby Experiments”

So in your case you would use:  
cvs\_output = Dir.chdir(“somewhere”) { `cvs update` }
