From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11273 invoked by alias); 1 Jun 2007 14:23:49 -0000 Received: (qmail 11230 invoked by uid 22791); 1 Jun 2007 14:23:48 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 01 Jun 2007 14:23:46 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hu82R-0003Fb-Jf for ecos-discuss@sources.redhat.com; Fri, 01 Jun 2007 16:23:36 +0200 Received: from c-76-17-159-202.hsd1.mn.comcast.net ([76.17.159.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Jun 2007 16:23:35 +0200 Received: from grante by c-76-17-159-202.hsd1.mn.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Jun 2007 16:23:35 +0200 To: ecos-discuss@sources.redhat.com From: Grant Edwards Date: Fri, 01 Jun 2007 14:23:00 -0000 Message-ID: References: <20070530211229.GI32489@lunn.ch> <20070531170804.GA6374@ubuntu> <876468dro6.fsf@dual.hq.sigicom.net> <1180688556.6836.1.camel@sg-ubuntu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: slrn/0.9.8.1 (Linux) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Re: eCos configuration question X-SW-Source: 2007-06/txt/msg00013.txt.bz2 On 2007-06-01, Sergei Gavrikov wrote: > Daniel NĂ©ri wrote: >> Sergei Gavrikov 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