Script dos problem

I have ror on my windows xp machine (development mode). When I use the
“ruby script/server” command in DOS it boots webrick but does it like
this:

=> Booting WEBrick…
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2006-11-26 22:56:22] INFO WEBrick 1.3.1
[2006-11-26 22:56:22] INFO ruby 1.8.5 (2006-08-25) [i386-mswin32]
[2006-11-26 22:56:22] INFO WEBrick::HTTPServer#start: pid=5756
port=3000
127.0.0.1 - - [26/Nov/2006:22:56:35 GMT Standard Time] “GET / HTTP/1.1”
200 7552

  • -> /
    127.0.0.1 - - [26/Nov/2006:22:56:35 GMT Standard Time] “GET
    /javascripts/prototy
    pe.js HTTP/1.1” 200 55149
    http://localhost:3000/ -> /javascripts/prototype.js
    127.0.0.1 - - [26/Nov/2006:22:56:35 GMT Standard Time] “GET
    /javascripts/effects
    .js HTTP/1.1” 200 32871
    http://localhost:3000/ -> /javascripts/effects.js
    127.0.0.1 - - [26/Nov/2006:22:56:35 GMT Standard Time] “GET
    /images/rails.png HT
    TP/1.1” 200 1787
    http://localhost:3000/ -> /images/rails.png
    127.0.0.1 - - [26/Nov/2006:22:56:35 GMT Standard Time] “GET /favicon.ico
    HTTP/1.
    1” 200 0
  • -> /favicon.ico
    127.0.0.1 - - [26/Nov/2006:22:56:35 GMT Standard Time] “GET /favicon.ico
    HTTP/1.
    1” 200 0
  • -> /favicon.ico
    127.0.0.1 - - [26/Nov/2006:22:56:37 GMT Standard Time] “GET
    /rails/info/properti
    es HTTP/1.1” 200 886
    http://localhost:3000/ -> /rails/info/properties

It seems to be constantly logging the actions of my web browser! Because
of this I cannot enter anymore commands into DOS without closing it and
reopening, which stops WEBrick! Any suggestions?

Jas wrote:

127.0.0.1 - - [26/Nov/2006:22:56:37 GMT Standard Time] “GET
/rails/info/properti
es HTTP/1.1” 200 886
http://localhost:3000/ -> /rails/info/properties

It seems to be constantly logging the actions of my web browser! Because
of this I cannot enter anymore commands into DOS without closing it and
reopening, which stops WEBrick! Any suggestions?

That thing is not DOS (which has been dead for >10 years). It is the
Command
Prompt, running CMD.EXE, a program that lets you enter commands as
strings.
(This is far superior to entering them with a mouse, because you can
repeat
and edit arbitrarily complex commands.)

Webrick does not do anything magical, such as start a service and then
exit
its command prompt program. You don’t want it to. So it stays in this
console and spews its output there. You need this to see, generally,
what
the server is doing.

To enter more commands, open another Command Prompt.


Phlip
http://www.greencheese.us/ZeekLand <-- NOT a blog!!!

Phlip wrote:

To enter more commands, open another Command Prompt.

Right. To explain a little further… As you’ve discovered, you want
to leave the Webbrick “DOS” open. So open another “DOS”. You can do
that by doing Start / Run and then typing in “cmd” to get your command
line. And you can do that multiple times. Once to start Webbrick,
once to run mysql client, once to be open to your project…

If you want to get really crazy, you can create Windows shortcuts with
the command lines for each of these. Then just double click each and
you have separate windows open with the appropriate commands entered.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs