From: Joe Date: 2006-05-03T10:13:34+09:00 Subject: system() vs. commandline? I have a C program that processes text files. When I run it from the commandline, it works fine. But if I run it via Ruby with 'system("textproc input output")' that output file usually gets truncated near its end. The docs state: "one of the exec(2) system calls is used, so the running command may inherit some of the environment of the original program (including open file descriptors)" Is there some setting for Ruby which could be causing this problem - such as a memory limit? I don't get any error messages whatsoever. I've also tried exec() and popen(), with the same results. Thanks, Joe Redhat FC4 Ruby 1.8.4 -- Posted via http://www.ruby-forum.com/.