• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

No output text on Windows 7 system command

Scheduled Pinned Locked Moved Developers' Forum
4 Posts 2 Posters 1.5k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    jiva_bagale
    last edited by 24 Jul 2017, 14:14

    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

    1 Reply Last reply Reply Quote 0
    • M Offline
      MSP_Greg
      last edited by 2 Aug 2017, 01:25

      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.

      1 Reply Last reply Reply Quote 0
      • J Offline
        jiva_bagale
        last edited by 7 Aug 2017, 16:04

        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

        1 Reply Last reply Reply Quote 0
        • M Offline
          MSP_Greg
          last edited by 8 Aug 2017, 02:34

          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...

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement