No output text on Windows 7 system command

No output text on Windows 7 system command

Postby jiva_bagale » Mon Jul 24, 2017 3:14 pm

I start an exe from ruby with system ("path\to\exe" "arg1" "arg2")
When the exe runs, the output text isn't visible in case of Windows 7. It only shows a blinking cursor. The actual task completes fine but no visible text. It works fine on Windows 8 and Windows 10.
It also shows the text if I run the exe directly on Windows 7.

One thing I have noticed is the title of the command is "c:\Windows\System32\cmd.exe" on Windows 7 where as it shows the actual path of the exe on Window 8 & 10.

The output text is important to give feedback to user as sometimes the process can run for up to 1 hour. The SketchUp version is 2017. Ruby version 2.2.4.

Thanks in advance
Jiva
0

jiva_bagale 
 

Re: No output text on Windows 7 system command

Postby MSP_Greg » Wed Aug 02, 2017 2:25 am

The problem is the ruby build currently included in SU 2017. Not sure why output varies by Windows version.

If one replaces it with a different build, command output will appear in the console.
0

MSP_Greg 
 

Re: No output text on Windows 7 system command

Postby jiva_bagale » Mon Aug 07, 2017 5:04 pm

Hi Greg,

Thank you for the reply. I am not familiar with the ruby side at all. Is the sketchup ruby upgrade simple process. Is there any guide which explain it? A quick google didn't return much useful information.

Many thanks
Jiva
0

jiva_bagale 
 

Re: No output text on Windows 7 system command

Postby MSP_Greg » Tue Aug 08, 2017 3:34 am

Jiva,

It's complicated. I started using Ruby years ago with SketchUp. Been away from SketchUp for while, but I'm still using Ruby.

As I recall, the files get split into two locations, you have to edit the SketchUp.exe file, etc.

I've also been building Ruby for quite a while, so the files I used were my own and built with current compilers & toolchains. With SU 2017, it can only run with Ruby 2.3 due to the changes that occurred in Ruby 2.4.

There may be a publicly available build of Ruby 2.3 in the (hopefully near) future...
0

MSP_Greg 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Developers' Forum

Who is online

Users browsing this forum: No registered users and 2 guests

Visit our sponsors: