From: Eleanor McHugh Date: 2010-01-10T21:46:56+09:00 Subject: Re: How to create a pipe file ("mkfifo pipe_file") On 8 Jan 2010, at 13:22, Iñaki Baz Castillo wrote: > El Viernes, 8 de Enero de 2010, Eleanor McHugh escribió: >> I see you've been asking a lot of questions over the Xmas break which seem >> to amount to "how the heck do I tame Unix from Ruby". Whilst they're by no >> means the full answer, take a look at the "Ruby Plumber's Guide" >> presentations linked from my sig and google the couple of videos that >> accompany them (there's one from GoRuCo, another from Rails Underground, >> and possibly others too). >> >> There should be enough between them to give you an idea of how to use Unix >> system calls from standard Ruby with syscall and Ruby/DL (or with a bit of >> thought from Ruby/FFI). >> >> Also grab yourself a copy of Marc Rochkind's "Advanced Unix Programming" >> and then spend a few days with the man pages for your favourite Unix >> distro. Whilst the POSIX calls have the advantage of being fairly portable >> you'll find most platforms have some cool calls of their own. > > Thanks a lot, I'm already reading such documentation :) I should add that there's also a wealth of useful code lurking on Github - especially amongst Ara T. Howard's stuff. Oh, and despite what the docs might say it seems to be perfectly safe (at least under mainstream Unix implementations) to load libc with either Ruby/DL or Ruby-FFI :) Ellie Eleanor McHugh Games With Brains http://slides.games-with-brains.net ---- raise ArgumentError unless @reality.responds_to? :reason