Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: Piping to windows command line .rb file doesn't work
Michael Campbell
10/14/2003 6:17:00 PM
Mills Thomas (app1tam) wrote:
> If I do this:
> home> type cat.rb
>
> I get this output:
> print $stdin.readlines
>
> If I do this:
> home> type cat.rb | ruby -e "print $stdin.readlines"
> I get this output (NOTE, it's the same):
> print $stdin.readlines
>
> If I type this command (.rb has been associated to ruby.exe on
Win2K):
> home> type cat.rb | cat.rb
>
> I get this output:
> cat.rb:1:in `readlines': Bad file descriptor (Errno::EBADF)
>
> from cat.rb:1
>
What about type cat.rb | ruby cat.rb ?
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Piping to windows command line .rb file doesn't work
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password