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

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top