system call in Ruby

Posted by Niklas on Stack Overflow See other posts from Stack Overflow or by Niklas
Published on 2010-04-09T09:29:14Z Indexed on 2010/04/09 9:33 UTC
Read the original article Hit count: 313

Filed under:
|
|
|

Ruby-help Hi. I'm a beginner in ruby and in programming as well and need help with system call for moving a file from source to destination like this:

system(mv "#{@SOURCE_DIR}/#{my_file} #{@DEST_DIR}/#{file}")

Is it possible to do this in ruby and which is the correct syntax?

Thx

© Stack Overflow or respective owner

Related posts about ruby

Related posts about and