From: Sebastian Hungerecker Date: 2008-05-11T17:27:55+09:00 Subject: Re: How to tell if script running under rubyw vs ruby? Sean O'Halpin wrote: > I don't have a Window box handy to test, but you could try checking > the value of STDOUT under rubyw - it's probably nil or something like > that or you may get .eof? == true. Alternatively you could check for STDOUT.closed? or !STDOUT.tty? One of those three should work at least. HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826