简体   繁体   中英

No line is printed out, in command box, when running a .Net Console app through Ruby system call

There is a simple C# console application which only prints out 'Hello'. And also a Ruby plugin which works in Sketchup 2014 is supposed to run the above app. (Ruby code used to run the app: "C:/s/Test.exe" )

It runs and works fine but nothing is displayed in the command box, whereas it shows 'Hello' in Sketchup 2013 or from outside Sketchup.

The only difference between Sketchup 2014 and 2013 is the former uses Ruby 2.0 and the later 1.8.

Does anyone know what possibly could be the reason? I appropriate any help or workaround.

Something broke when the Ruby interpreter was upgraded to 2.0 in SketchUp. We don't know what caused it. The current workaround is to pipe the output to a temp file and read the file.

`C:/s/Test.exe > sometempfile.txt`

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM