From: anthony cagle Date: 2002-02-27T06:52:43+09:00 Subject: Re: Kernel.system incongurity - Windows98 Clemens, Thanks, but that was just an artiifact of kmail, the line didn't actually have a carriage-return in the middle. This was really frustrating. I volunteered to do this in Ruby because I thougth the facility worked and would be a good demo of Ruby's capabilities for the QA people. Instead, it's now being done in Python. For each release, we try to test mutliple versions of Netscape 4.x to make sure our pages still display correctly. I scored a big win for Ruby by figuring out that this could be done for Internet Explorer using win32ole. So much better than having a tester click through pages. I could not figure out how to get Netscape to work with win32ole, so I tried using the system command. with rundll There's got to be a way to make either win32ole or system work, but I just ran out of time. It's a useful problem to figure out though. Despite HTML checkers, our biggest cost, after development, is this simple verification process. Not just the cost of checking, but the fact that we have twice been informed of pages that would not display at all in old versions of Netscape after we'd done the release - by our customers. In any case, thanks and if you have any other ideas please pass them on. I'd like to take another shot at this before the next release! Anthony On Monday 25 February 2002 11:52 pm, you wrote: > Hi Anthony, > you simply have to remove the carriage-return (CR), i.e.: > system("rundll32 url.dll,FileProtocolHandler > http://www2.subimo.com/start?userid=acc") > > ;-) > Clemens > > > -----Original Message----- > > From: Anthony Cagle [mailto:anthony@vertegal.myip.org] > > Sent: Dienstag, 26. Februar 2002 02:11 > > To: ruby-talk@ruby-lang.org > > Cc: acagle@subimo.com > > Subject: Kernel.system incongurity - Windows98 > > > > > > Pardon me for sending this twice, for some reason the subject > > was wrong the > > first time. > > > > Windows98 Ruby 1.65 > > > > The following �fragment is supposed to open the web browser > > and display a web > > page: > > > > system("rundll32 url.dll,FileProtocolHandler http://www.subimo.com") > > print $? > > print "\n" > > system("rundll32 url.dll,FileProtocolHandler > > http://www2.subimo.com/start?userid=acc") > > print $? > > print "\n" > > > > Instead, the first system command succeeds while the second > > gets a return > > code of 32512. > > > > Both commands work as expectdr from the MS-DOS commandline. > > > > My guess is that it's some kind of command-expansion bug, but > > I've tried > > seperating the elements without success. �Has anyone else > > already figured > > this out? I'm baffled and just looking for a workaround since > > this was > > supposed to be a thirty minute project. to display a bunch of > > web pages and > > verify that they look OK. > > Thanks, > > Anthony -- Poincare once said: "Sociologists discuss sociological methods: physicists discuss physics." I love this statement. Study of metho by itself is alway barren... Christopher Alexander 1964