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 <[EMAIL PROTECTED]>: > 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 <[EMAIL PROTECTED]>: > > > 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 <[EMAIL PROTECTED]> > > > Gentoo Linux > > > > > > -- > > > gentoo-portage-dev@gentoo.org mailing list > > > > > > > > > > > > -- > > tvali > > (e-mail: "[EMAIL PROTECTED]"; msn: "[EMAIL PROTECTED]"; > > 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 <[EMAIL PROTECTED]> > Gentoo Linux > > -- > gentoo-portage-dev@gentoo.org mailing list > > -- tvali (e-mail: "[EMAIL PROTECTED]"; msn: "[EMAIL PROTECTED]"; 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