From: Robert Klemme Date: 2008-08-14T05:47:41+09:00 Subject: Re: Potentially issues with "system" command (Nuby) On 13.08.2008 22:32, Thomas Luedeke wrote: > Dave Thomas wrote: >> On Aug 13, 2008, at 3:13 PM, Thomas Luedeke wrote: >> >>> Sorry, one last clarification. If I write a three line code running >>> the >>> same input file, using the same system command, it runs to >>> completion. >>> So something with regards to the lengthy script is interfering with >>> the >>> process. Is this indicative of a memory issue? >>> -- >> >> What's the termination status in $?. That may tell you why your >> subprocess died. > I'm pretty new at this - what is the command to do so? Place a "p $?" in the line after your system command. On which platform and Ruby version are you? What shell are you using when executing the command directly? One effect of system you might not be aware of is that there will be a shell invoked if you use a single string. I have no idea whether this is related to your issue but it's certainly something to keep around in the back of your mind. Cheers robert