Redirecting the input works better on both Windows and Unix than cat, to my earlier point.
-Greg Sent from my iPad On Jun 28, 2013, at 4:58 PM, "Randolph M. Fritz" <randolph...@panix.com> wrote: > Rob Guglielmetti <rob.guglielmetti@...> writes: > >> >> I am silly. This vestigial code is still in OpenStudio, for "Radiance > Classic" calcs with a continuous sky: >> >> catCommand = "cat" >> if /mswin/.match(RUBY_PLATFORM) or /mingw/.match(RUBY_PLATFORM) >> catCommand = "type" >> end >> >> system("#{catCommand} ./numeric/#{space_name}.map | rtrace #{rtrace_args} …") > > boy, was that last remark off-target. > > I don't understand how that code can work? Does something in that > implementation of "system" convert slashes to backslashes? > > Anyhow, in this case, could one just perhaps divert rtrace's input? > > system("rtrace #{rtrace_args} < ./numeric/#{space_name}.map") > > Or would that fail? > > > > _______________________________________________ > Radiance-dev mailing list > Radiance-dev@radiance-online.org > http://www.radiance-online.org/mailman/listinfo/radiance-dev _______________________________________________ Radiance-dev mailing list Radiance-dev@radiance-online.org http://www.radiance-online.org/mailman/listinfo/radiance-dev