System command and silent output?

Im using ruby for a build script here
and im doing things like:

system “del #{filePath} /s /q”

however I dont want to see the result of that, currently it shows a
zillion files on the console output

ive tried to do a system “echo off” but it doesnt change anything.

//Roger

thanks, works wonderful :slight_smile:

On Jun 29, 2006, at 12:59 PM, Roger J. wrote:

//Roger


Posted via http://www.ruby-forum.com/.

If you are using windows, which it looks like, you can do
system “del #{filePath} /s /q >NUL”

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs