starting a shell command without wait?

Discussion in 'Ruby' started by Roland Winkler, Jan 14, 2009.

  1. Hi,

    I have a simple problem. I like to start simply executable on windows XP
    with a shell command as last step in the small script. Using
    system("some.exe"), `some.exe`, exec("some.exe") or %x["some.exe"] keeps
    always the shell open. After closing the exe the shell also vanish.

    How can i simply start a executable from a ruby script without having
    the shell always open?

    Thanks,
    Roland
    --
    Posted via http://www.ruby-forum.com/.
    Roland Winkler, Jan 14, 2009
    #1
    1. Advertising

  2. I found my self the solution!

    I use now IO.popen("some.exe") and it does the job.

    Thanks,
    Roland


    --
    Posted via http://www.ruby-forum.com/.
    Roland Winkler, Jan 14, 2009
    #2
    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. Replies:
    2
    Views:
    5,664
    Jonathan Bromley
    Feb 18, 2005
  2. Huey

    How to make "fork/wait" to WAIT longer?

    Huey, Mar 1, 2004, in forum: C Programming
    Replies:
    1
    Views:
    1,945
    -berlin.de
    Mar 1, 2004
  3. Replies:
    4
    Views:
    1,695
    Terry Hancock
    Apr 23, 2005
  4. Donald Duck

    Best command for running shell command

    Donald Duck, Jul 11, 2006, in forum: Python
    Replies:
    3
    Views:
    393
    iapain
    Jul 11, 2006
  5. kj
    Replies:
    2
    Views:
    65
    Ben Morrow
    Sep 16, 2007
Loading...

Share This Page