public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: tvali <qtvali@gmail.com>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] Hello! && portage UI
Date: Wed, 15 Mar 2006 19:36:19 +0200	[thread overview]
Message-ID: <cea53e3c0603150936w3643312n@mail.gmail.com> (raw)
In-Reply-To: <1142440586.6308.116.camel@onyx>

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 language has.
>
> ...
>
> > If you are able to run command-line app, send keyboard input and catch
> > it's output, you're done with it.
> >
> > You can also write some small python function, which will parse python
> > 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 python
> > > > api's. As such it could directly interface with python, and use the
> > > > python portage api.
> > >
> > > If you could demonstrate an 'import portage' and a simple
> > > printf("PORTDIR=%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")
> >
> > Ühe 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
> >
> --
> 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")

Ühe 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

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



  reply	other threads:[~2006-03-15 17:37 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-13 22:39 [gentoo-portage-dev] Hello! && portage UI tvali
2006-03-14  0:54 ` Brian
2006-03-14 11:14   ` tvali
2006-03-14 14:39     ` Brian
2006-03-14 14:55       ` tvali
2006-03-14 15:07         ` Brian
2006-03-14 15:18       ` Marius Mauch
2006-03-14 16:48         ` tvali
2006-03-14 16:55           ` tvali
2006-03-15  9:51           ` Paul de Vrieze
2006-03-15 14:52             ` solar
2006-03-15 15:12               ` tvali
2006-03-15 16:36                 ` solar
2006-03-15 17:36                   ` tvali [this message]
2006-03-15 20:42               ` portage from C (was Re: [gentoo-portage-dev] Hello! && portage UI) Kevin F. Quinn (Gentoo)
2006-03-15 21:37                 ` solar
2006-03-15 22:12                   ` tvali
2006-03-15 22:14                     ` tvali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cea53e3c0603150936w3643312n@mail.gmail.com \
    --to=qtvali@gmail.com \
    --cc=gentoo-portage-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox