rubyw.exe and the "system()" call

Discussion in 'Ruby' started by Chase Wilson, May 3, 2011.

  1. Chase Wilson

    Chase Wilson Guest

    I'm trying to run ruby without the command terminal popping up, so I run
    it using rubyw.exe. However, in my program I need to make many calls
    using the "system()" command, and every time I do, the command terminal
    pops up for a fraction of a second and then goes away. This is very
    distracting and I was wondering if anyone knew a way around this.

    When I run this using ruby.exe I don't get this problem; however because
    it's ruby.exe I have the command terminal showing the whole time (which
    I don't want)

    --
    Posted via http://www.ruby-forum.com/.
    Chase Wilson, May 3, 2011
    #1
    1. Advertising

  2. Chase Wilson

    xcr xcr Guest

    xcr xcr, May 3, 2011
    #2
    1. Advertising

  3. Chase Wilson

    Pete Higgins Guest

    Chase Wilson wrote in post #996358:
    > I'm trying to run ruby without the command terminal popping up, so I run
    > it using rubyw.exe. However, in my program I need to make many calls
    > using the "system()" command, and every time I do, the command terminal
    > pops up for a fraction of a second and then goes away. This is very
    > distracting and I was wondering if anyone knew a way around this.
    >
    > When I run this using ruby.exe I don't get this problem; however because
    > it's ruby.exe I have the command terminal showing the whole time (which
    > I don't want)


    IIRC, Process.spawn [1] doesn't cause the cmd window to show when using
    rubyw.exe.

    1: http://ruby-doc.org/core-1.9/classes/Process.html#M002230

    --
    Posted via http://www.ruby-forum.com/.
    Pete Higgins, May 4, 2011
    #3
  4. Chase Wilson

    Roger Pack Guest

    Roger Pack, May 4, 2011
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt Mower
    Replies:
    6
    Views:
    243
    Shashank Date
    Feb 25, 2005
  2. Dirk Meijer

    rubyw.exe not working

    Dirk Meijer, Sep 11, 2005, in forum: Ruby
    Replies:
    4
    Views:
    221
    Dirk Meijer
    Sep 12, 2005
  3. DavidB
    Replies:
    0
    Views:
    97
    DavidB
    Jun 10, 2006
  4. Richard
    Replies:
    7
    Views:
    218
    Richard
    Jul 4, 2006
  5. R.E.

    The Rubyw.exe Thread

    R.E., Apr 2, 2007, in forum: Ruby
    Replies:
    11
    Views:
    201
    Ryan Leavengood
    Apr 2, 2007
Loading...

Share This Page