On 11/19/12 15:28 , Charles Steinkuehler wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 11/19/2012 1:53 PM, Sebastian Kuzminsky wrote: >> On 11/19/12 12:49 , andy pugh wrote: >>> Is there any way to have the messages from a HAL realtime >>> component print to the halrun prompt (ie stdio) rather than to >>> dmesg? >>> >>> I have a command-line (only) HAL component that could do with >>> being a little more interactive. >>> >> Realtime components in the RTAI world run in the kernel, so there >> is no stdout for them to print to. >> >> It might work in one of the new userspace realtime worlds >> (xenomai-user?), but I don't know anything about those. > Just hook an LED to a GPIO pin and blink-out morse code...interactive > *AND* a pretty light show! :) > > BTW, I HAVE actually *DONE* this... > > ...or as indicated above, you can build one of the user-mode flavors > (I'm most familiar with the rt-preempt, but xenomai-user might work > too), and not only can you print to stderr and stdout, but you can > also debug your module with gdb, run strace, etc. Just remember to > follow children when forking.
That's very cool.... :-) -- Sebastian Kuzminsky ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers