Logging Rake shell command output

B

brenton.leanhardt

Has anyone else had the desire to log verbose shell command output
with Rake instead of sending it to stdout?

For my Rake application I aliased FileUtils#sh to append ">> /tmp/
mylogfile.log 2>&1" to every command that Rake executes. While this
gets the job done it's always bothered me.

Is there any reason why Rake uses Kernel#system instead of the
backtick operator?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,470
Messages
2,571,807
Members
48,797
Latest member
PeterSimpson
Top