[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Logging Rake shell command output

brenton.leanhardt@gmail.com

7/18/2007 3:43:00 PM

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?