SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jun 2006
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ruby command line interpreter closes after script execution

    Hi all,

    I installed the Ruby interpreter for Windows on my XP box and all is well except:

    The command line window closes *immediately* upon execution of a script.

    I click on an .rb file and the window opens, runs the script, and closes so fast it is impossible to review any output.

    There must be a configuration setting somewhere that will solve this problem.

    Anyone have any suggestions? I prefer not to use FREERIDE or Scite as a workaround.

    Cheers,
    David

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Run it from a currently open command window, not from the Windows desktop.

  3. #3
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or call the gets function:

    Code:
    # your script here....
    
    gets
    The window will be open until you hit return.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •