# Rake outputting to stderror

**URL:** <https://www.ruby-forum.com/t/rake-outputting-to-stderror/154858>\
**Category:** Ruby\
**Created:** [December 4, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/rake-outputting-to-stderror/154858 "2008-12-04T16:24:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob\_Archer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c68b51/32.png) [@Bob\_Archer](https://www.ruby-forum.com/u/Bob_Archer)\
**Post date:** [December 4, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/rake-outputting-to-stderror/154858/1 "2008-12-04T16:24:44Z")

</div>

I am using [CC.Net](http://CC.Net) to call rake via the rake task in [cc.net](http://cc.net).

In my rake file I have a cp command:

FileList[‘\*\*/app.config.template’].each do |src|

cp src, “#{File.dirname(src)}/app.config” unless  
File::exist?(“#{File.dirname(src)}/app.config”)

end

However, in the [cc.net](http://cc.net) log the above cp gets logged as:

 cp Unit Test/eDex.Test/App.config.template Unit Test/eDex.Test/app.config

On the [cc.net](http://cc.net) mail list they told me this:

“The problem you have with the cp  
thing showing as error is that rake seems to write it to the standard  
error stream.”

Why is this written to std error instead of stdout? The cp did not  
error?

Thanks,

BOb
