On Fri, 29 Dec 2000, craig duncan wrote: > John Rubinubi wrote: > > > > On Tue, 26 Dec 2000, craig duncan wrote: > > > > > . . . Your one liner does work for me. If you > > > don't specify any files on the command line, it reads from standard > > > input and echoes every line that you enter that contains "Ruby" in it. > > > > It still crashes for me. I'll upload the file on the next line. > > > > ARGF.each {|line| print line if line =~/Ruby/} > > > > so that is the uploaded file which crashes. I have to ctrl/alt/del to stop > > it. It doesn't even ask for input. Does it work for any rubywin user? > > > > Here's another question. > > > > How to stop a program under windows?? Is there a way besides > > ctrl-alt-del??? > > What are the symptoms of your "crash"? (If it truly crashes, there > won't be any issue of stopping it.) Just for the hell of it, i'd try > typing ^Z (control-Z) a few times and see if that does anything. I'm > pretty sure the Windows 98 resource kit has a little program that can > display (and kill) processes but the standard system . . . no (I know > the NT resource kit has it). > Ctrl-C kills whatever's being run from a shell (if that's how you're > doing it), Ctrl-Z is <EOF>. > > I know it's stupid but . . . it's not possible that your program is just > waiting for input, is it? (it won't be _displaying_ anything that > indicates it's waiting for input, because there are no output > statements). > > Just on the off-chance that you're not doing any of this from a > command-line, is it possible for you to run it that way? Maybe it's a > problem with where stdin is coming from. > > craig > I have been trying to run it just from RubyWins Ruby/RunFile menu item and it really crashes--console window never opens and I can't click on anything in Ruby. If I wait long enough to do ctrl-alt-del it says "RubyWin [not responding]" I tried it from an "msdos prompt" cli window as you suggest. It works if I invoke the file with "Ruby argf.rb". So I guess it's not my fault -- but I am perfectly capable of staring at a blank screen while it waits for me to type something. John