Re: [Vala] howto invoke an external process
Well, there's an extern facility which allows you to call arbitrary c code. (Don't have the exact reference handy right this moment.) And from arbitrary c code you could do a system(...); (This may not be the most pleasant way to do it, and i'd also be interested in a cleaner solution, for example, a SubProcess class.) dan On Fri, Feb 17, 2012 at 9:43 AM, D.H. Bahr db...@uci.cu wrote: Hello everyone, this is my first email to the list. I've been looking at Vala for a while now, and I like all I see. I just a have a question right now: Is it possible to spawn an external process from Vala code in a manner similar to Python's SubProccess?? Best regards, -- Sw.E. D.H. Bahr Nova Desktop Development Leader CESOL (Free/Libre Software Centre) UCI (University of Informatics Sciences) Havana, Cuba Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU! http://www.antiterroristas.cu http://justiciaparaloscinco.wordpress.com ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] howto invoke an external process
On Fri, 17 Feb 2012 12:43:42 -0500 D.H. Bahr db...@uci.cu wrote: Hello everyone, this is my first email to the list. I've been looking at Vala for a while now, and I like all I see. I just a have a question right now: Is it possible to spawn an external process from Vala code in a manner similar to Python's SubProccess?? Best regards, Absolutely. GLib.Process will do what you need http://valadoc.org/glib-2.0/GLib.Process.html ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] howto invoke an external process
On Fri, 2012-02-17 at 12:43 -0500, D.H. Bahr wrote: Hello everyone, this is my first email to the list. I've been looking at Vala for a while now, and I like all I see. I just a have a question right now: Is it possible to spawn an external process from Vala code in a manner similar to Python's SubProccess?? Best regards, would one of the glib *spawn* methods work here ala http://unstable.valadoc.org/glib-2.0/GLib.Process.spawn_async_with_pipes.html ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] howto invoke an external process
For both of you: http://valadoc.org/glib-2.0/GLib.Process.html On Fri, Feb 17, 2012 at 8:31 PM, Dan Hitt dan.h...@gmail.com wrote: Well, there's an extern facility which allows you to call arbitrary c code. (Don't have the exact reference handy right this moment.) And from arbitrary c code you could do a system(...); (This may not be the most pleasant way to do it, and i'd also be interested in a cleaner solution, for example, a SubProcess class.) dan On Fri, Feb 17, 2012 at 9:43 AM, D.H. Bahr db...@uci.cu wrote: Hello everyone, this is my first email to the list. I've been looking at Vala for a while now, and I like all I see. I just a have a question right now: Is it possible to spawn an external process from Vala code in a manner similar to Python's SubProccess?? Best regards, -- Sw.E. D.H. Bahr Nova Desktop Development Leader CESOL (Free/Libre Software Centre) UCI (University of Informatics Sciences) Havana, Cuba Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU! http://www.antiterroristas.cu http://justiciaparaloscinco.wordpress.com ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list -- www.debian.org - The Universal Operating System ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] howto invoke an external process
A big «Thanks» to Luca, Reid, jezra and Eric, I'm thinking this should be exactly what I need. Best regards, El vie, 17-02-2012 a las 12:43 -0500, D.H. Bahr escribió: Hello everyone, this is my first email to the list. I've been looking at Vala for a while now, and I like all I see. I just a have a question right now: Is it possible to spawn an external process from Vala code in a manner similar to Python's SubProccess?? Best regards, -- Sw.E. D.H. Bahr Nova Desktop Development Leader CESOL (Free/Libre Software Centre) UCI (University of Informatics Sciences) Havana, Cuba Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU! http://www.antiterroristas.cu http://justiciaparaloscinco.wordpress.com ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list