From: Thijs Janzen Date: 2008-10-19T10:23:30+09:00 Subject: Re: Trying to run an external exe file in ruby William James wrote: > Thijs Janzen wrote: > >> target = name3 >> called from within ruby, using the script as above, it all of a >> sudden is not able to create output based on "feed.txt". It is able >> to open it, but read in values are not stored anymore, and thus not >> written to the config file. >> >> Are there any restrictions or such to running C++ based exe files from >> within ruby? > > Are you sure that Mastermind.exe is looking in the correct > directory? I believe that the current directory for the exe > will be the directory in which Ruby was invoked. yes, that is correct. Actually, the ruby file, and the Mastermind.exe file are in the exact same directory. Mastermind.exe does indeed run, it creates the config.ini, BUT the parameter that is supposed to have 'feeded' to it, by means of reading out "feed.txt", is NOT passed on to the config.ini... -- Posted via http://www.ruby-forum.com/.