From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.54)
	id 1FJZvj-0007O5-3q
	for garchives@archives.gentoo.org; Wed, 15 Mar 2006 17:37:03 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.5.20060308/8.13.5) with SMTP id k2FHaL4I029271;
	Wed, 15 Mar 2006 17:36:21 GMT
Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.200])
	by robin.gentoo.org (8.13.5.20060308/8.13.5) with ESMTP id k2FHaK9j016390
	for <gentoo-portage-dev@lists.gentoo.org>; Wed, 15 Mar 2006 17:36:21 GMT
Received: by nproxy.gmail.com with SMTP id a25so117016nfc
        for <gentoo-portage-dev@lists.gentoo.org>; Wed, 15 Mar 2006 09:36:20 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=CZ2NAF9Cjwt+zsitKdc7KMCFjheUhHXlP4BMlJ/TM/4QQ3M1KBZVISvzPs2QbG6pIzsFvwMNZXUM2NpD3M027iGNXZNheUkdehn9D3raMFuR+euizM4q+fMShScGDsFn+WhZqYC0JNLyX0SZR0llaDDw26PEqmdNEg05B0YASXk=
Received: by 10.48.14.6 with SMTP id 6mr366064nfn;
        Wed, 15 Mar 2006 09:36:19 -0800 (PST)
Received: by 10.49.29.4 with HTTP; Wed, 15 Mar 2006 09:36:19 -0800 (PST)
Message-ID: <cea53e3c0603150936w3643312n@mail.gmail.com>
Date: Wed, 15 Mar 2006 19:36:19 +0200
From: tvali <qtvali@gmail.com>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] Hello! && portage UI
In-Reply-To: <1142440586.6308.116.camel@onyx>
Precedence: bulk
List-Post: <mailto:gentoo-portage-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-portage-dev+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-portage-dev+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-portage-dev+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-portage-dev.gentoo.org>
X-BeenThere: gentoo-portage-dev@gentoo.org
Reply-to: gentoo-portage-dev@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <cea53e3c0603131439y2b80d08du@mail.gmail.com>
	 <4416DEAF.30008@gentoo.org>
	 <cea53e3c0603140848r44108b8di@mail.gmail.com>
	 <200603151051.32777.pauldv@gentoo.org>
	 <1142434334.25069.110.camel@onyx>
	 <cea53e3c0603150712y515db035t@mail.gmail.com>
	 <1142440586.6308.116.camel@onyx>
X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k2FHaK9j016390
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k2FHaL5a029271
X-Archives-Salt: e889614c-fedc-4a62-aee8-1dcb42586c11
X-Archives-Hash: d01a451bc6658ae15ac4a47621b0e8d3

Not so simply :)

This is a clear way, i think. I havent c++ installed right now as it
gives some errors and i havent too much urge yet.

Anyway, with piping..
python > /root/test.out < /root/test.in

You can write things like "import module" to test.in, then use result
from test.out.

I did write words "print 'hello!'" to test.in, which left 1 word
"hello" into test.out -- of course it's slower than getting it work as
realtime interaction :)

http://www.math.mcgill.ca/services/linux_basics.php -- there is also
command1 | command2 for piping between apps.

Tcl script: http://www.cs.mun.ca/~donald/msc/node72.html

When i get kdevelop to work here, i will look this thing more and
produce some code -- i like it more than Kate :) Anyway, i think that
it shouldnt be hard at all :) And using io files, it's achievable now,
too.

2006/3/15, solar <solar@gentoo.org>:
> On Wed, 2006-03-15 at 17:12 +0200, tvali wrote:
> > Could :P
> >
> > Python has this interactive interpreter, what every scripting languag=
e has.
>
> ...
>
> > If you are able to run command-line app, send keyboard input and catc=
h
> > it's output, you're done with it.
> >
> > You can also write some small python function, which will parse pytho=
n
> > variables into some form, which you can simply parse into something,
> > what is easily readable in C.
>
> An example please. 5 lines of code have more meaning than ~30 emails on
> the topic that simply state 'it can be done'
>
>
> > 2006/3/15, solar <solar@gentoo.org>:
> > > On Wed, 2006-03-15 at 10:51 +0100, Paul de Vrieze wrote:
> > >
> > > [snip]
> > >
> > > > Actually, C++ being strongly related to C, can just use the C pyt=
hon
> > > > api's. As such it could directly interface with python, and use t=
he
> > > > python portage api.
> > >
> > > If you could demonstrate an 'import portage' and a simple
> > > printf("PORTDIR=3D%s\n", PORTDIR); in C I'd be highly interested.
> > >
> > > --
> > > solar <solar@gentoo.org>
> > > Gentoo Linux
> > >
> > > --
> > > gentoo-portage-dev@gentoo.org mailing list
> > >
> > >
> >
> >
> > --
> > tvali
> > (e-mail: "qtvali@gmail.com"; msn: "qtvali@gmail.com";
> > icq: "317-492-912")
> >
> > =DChe eesti internetifirma lehel kohtasin tsitaati:
> > If you don't do it excellently, dont do it at all. Because if it's no=
t
> > excellent, it won't be profitable or fun, and if you're not in
> > business for fun or profit, what the hell are you doing here?
> > Robert Townsend
> >
> --
> solar <solar@gentoo.org>
> Gentoo Linux
>
> --
> gentoo-portage-dev@gentoo.org mailing list
>
>


--
tvali
(e-mail: "qtvali@gmail.com"; msn: "qtvali@gmail.com";
icq: "317-492-912")

=DChe eesti internetifirma lehel kohtasin tsitaati:
If you don't do it excellently, dont do it at all. Because if it's not
excellent, it won't be profitable or fun, and if you're not in
business for fun or profit, what the hell are you doing here?
Robert Townsend

--=20
gentoo-portage-dev@gentoo.org mailing list