From: Bino Oetomo Date: 2007-05-11T12:49:19+09:00 Subject: Re: from REALbasic > Terminal > RUBY ?! Watanabe Carcass wrote: > Hello: > > This might seem weird, I just started Ruby, so don't know much about it, > HOW CAN I PASS ARGUMENTS AS A STRING FROM A UNIX TERMINAL INTO A RUBY > SCRIPT? I did this ... well not a topnotch one. I'm playing with ttyctrl --> http://ttysctrl.sf.net This "small" utility will read the status of COMport and do some defined action ... and I want that this "action" recognized by a runing ruby script. For this ... I make a temporary file in my ramdisk .. Tell ttyctrl to write a string based on witch button-press read by it. In a noher process, I have a running ruby script that loop to read the file above .. and do further action based on it content. In My case .. the ruby script will send content of that file to another process in another mechine via XMPP (here is where XMPP4R do the trick) I'll use same trick to send NMEA sentences from one mechine to another for further process (Map ?) But .. I think if you have better knowledge than me ... you can use RubyD Or basicaly ... let that two application talk eachother via unix socket. Sincerely -bino- -- Posted via http://www.ruby-forum.com/.