05 Jan '13, 12pm

“bash - How to stop Ruby WEBrick app from Terminal in Xubuntu - Stack Overflow”

I started learn Ruby. I tried to work with WEBrick server. After ruby index.rb command server starts. And how to stop it? I tried Ctrl+c, Ctrl+X and other. It still working. Then I pushed Ctrl+Z. Bash said: [1]+ Stopped ruby index.rb. But process is still working, and using my port, that need for server. I can kill it only from System Monitor. What command I need to user in bash to kill index.rb process?? When I user Ctrl+C, there is error: [2012-04-09 19:44:10] ERROR Interrupt: /usr/lib/ruby/1.8/webrick/server.rb:91:in `select' P.S. Application is very simple (from WikiBooks): require 'webrick' server = WEBrick::HTTPServer.new(:Port=>8080) server.mount_proc('/'){ |req, resp| File.open('notepad.txt', 'w'){ |f| f.write(req.query["text"]) } if req.query["text"] resp['Content-Type'] = 'text/html' resp.body = %& <html><body><center><form method="post"> <textarea name="text" ro...

Full article: http://stackoverflow.com/questions/10075742/how-to-stop-r...

Tweets

Umno bn selangor. Stop the lies!

blog.limkitsiang.com 05 Jan '13, 3pm

I am begining to believe that UMNO/BN actually BELIEVE the lies they tell. Its not just Perkasa and Ibrahim Ali that belie...

Umno-BN, stop the lies against Selangor - by Ab...

blog.limkitsiang.com 05 Jan '13, 10am

I am begining to believe that UMNO/BN actually BELIEVE the lies they tell. Its not just Perkasa and Ibrahim Ali that belie...