From: Stefan Gremm Date: 2008-03-25T17:43:13+09:00 Subject: Re: $stdin Am Dienstag, den 25.03.2008, 08:50 +0900 schrieb Eric Hodel: > Here's one way, but it isn't foolproof. > > $ ruby -e 'p $stdin.tty?' > true > $ ruby -e 'p $stdin.tty?' < /dev/null > false > $ cat /dev/null | ruby -e 'p $stdin.tty?' > false eric, thank you for your answer. But, when starting the program without pipe, the result is true too Mhmm, my program becoms the messagetext over pipe or over commandparameter ,if over pipe, all is good, if over parameter, the program hangs. Ciao Stefan -- ==================================================================== Stefan Gremm, Trebur, Germany Key fingerprint = BBBD 6645 F8B4 FE73 22FC D2F4 B4E6 5B48 60A2 82D9 ====================================================================