From: Stefan Gremm Date: 2008-03-25T02:47:07+09:00 Subject: Re: $stdin Am Dienstag, den 25.03.2008, 02:11 +0900 schrieb Rodrigo Bermejo: > Try the -n option > > -n assume 'while gets(); ... end' loop around your > script > > > #code > smtp_message = "" > $_.each do |f| > smtp_message += f > end > #endcode > > > cat /var/mailtext| ruby -n send-mail.rb thanks for the answer, but when i start my script is coming the folowing error undefined method `each' for nil:NilClass (NoMethodError) and my command parser brings failure ciao Stefan -- ==================================================================== Stefan Gremm, Trebur, Germany Key fingerprint = BBBD 6645 F8B4 FE73 22FC D2F4 B4E6 5B48 60A2 82D9 ====================================================================