Forum: Ruby Logging Rake shell command output

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Fe193cd633930eafd43b3486cc084e62?d=identicon&s=25 (Guest)
on 2007-07-18 17:46
(Received via mailing list)
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?
This topic is locked and can not be replied to.