This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: eCos configuration question
- From: Grant Edwards <grante at visi dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Fri, 1 Jun 2007 14:23:27 +0000 (UTC)
- Subject: [ECOS] Re: eCos configuration question
- References: <20070530211229.GI32489@lunn.ch> <Pine.LNX.4.44.0705310930230.28807-100000@otter.localdomain> <20070531170804.GA6374@ubuntu> <876468dro6.fsf@dual.hq.sigicom.net> <1180688556.6836.1.camel@sg-ubuntu>
On 2007-06-01, Sergei Gavrikov <w3sg@SoftHome.net> wrote:
> Daniel Néri wrote:
>> Sergei Gavrikov <w3sg@SoftHome.net> writes:
>>
>> > I think you get the messager, I think, if an 'ecosconfig' syntax would
>> > allows such call
>> >
>> > ecosconfig import - ;# i.e. import 'Tcl lines' = CDLs from stdin
>>
>> I once hacked my ecosconfig to add that feature, but I no longer use
>> it since
>>
>> ecosconfig import /dev/stdin
>>
>> works just as well (on the host platforms I care about).
>
> That really works! Thanks for your great TIP!
The more general case is to use /proc/self/fd/N (where N is the
file descriptor number). If you look, /dev/stdin is just an
indirect symlink to /proc/self/fd/0
--
Grant Edwards grante Yow! ... My pants just went
at on a wild rampage through a
visi.com Long Island Bowling Alley!!
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss