Forum: Ruby Trying to do cvs updates inside back accent environments

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
19a9e4d07410618284db6a44de12e079?d=identicon&s=25 Xeno Campanoli (Guest)
on 2006-03-07 23:59
(Received via mailing list)
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
Bc6d88907ce09158581fbb9b469a35a3?d=identicon&s=25 James Britt (Guest)
on 2006-03-08 00:08
(Received via mailing list)
Xeno Campanoli 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
E34b5cae57e0dd170114dba444e37852?d=identicon&s=25 Logan Capaldo (Guest)
on 2006-03-08 00:17
(Received via mailing list)
On Mar 7, 2006, at 5:57 PM, Xeno Campanoli 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` }
This topic is locked and can not be replied to.