From bhanu423@gmail.com Fri Jul 31 17:26:52 2015 Return-Path: X-Original-To: javascript-list@gnome.org Delivered-To: javascript-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by restaurant.gnome.org (Postfix) with ESMTP id 95E2076A1F for ; Fri, 31 Jul 2015 17:26:52 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.449 X-Spam-Level: X-Spam-Status: No, score=-2.449 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham Received: from restaurant.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id de9sAWCjnFSr for ; Fri, 31 Jul 2015 17:26:51 +0000 (UTC) Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by restaurant.gnome.org (Postfix) with ESMTP id AE086769D2 for ; Fri, 31 Jul 2015 17:26:51 +0000 (UTC) Received: by obnw1 with SMTP id w1so58598426obn.3 for ; Fri, 31 Jul 2015 10:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=r3leKK/Jr5S5nlPoFFgL6HNUkK1oYjbhtt7/R3okmzY=; b=rIL+xaIIQgRiVAgmy9PCeYXJ7O4ZFew+CP7Y2fCPA6PtYdtbBP53LvFTn5BW+HzqaP MT2i7YcZ+sJyuopxnQxDC3p7TlZBU1ofq+ykvQxIo8iCjCAOSD3i/EQvnk8ixd5VTAVo hQPnrcXj2kT4EWV/Zicrq6UkUcCFJoE5RryRrN48MtoarXgNBcuCiHDtYMOqwu+28fCM M1ccuVHh4ZQOHxXdXumnuQOfyZC207YYdT+Reb1/dxNXI3sg44bojiyAZutwwdxaT0Gt vOBm009ZoHOFoKyrl8uzdQ34pvMnTAe0iqaMok5cwcaHrrizq8JalWwkYn2p5mFvX5Uh U+Nw== MIME-Version: 1.0 X-Received: by 10.182.148.65 with SMTP id tq1mr4576404obb.12.1438363610298; Fri, 31 Jul 2015 10:26:50 -0700 (PDT) Received: by 10.202.223.11 with HTTP; Fri, 31 Jul 2015 10:26:50 -0700 (PDT) Date: Fri, 31 Jul 2015 22:56:50 +0530 Message-ID: Subject: help with GLib.spawn_async_with_pipes From: Bhanu Chaudhary To: javascript-list@gnome.org Content-Type: multipart/alternative; boundary=089e0158b59c0cc146051c2f2062 X-BeenThere: javascript-list@gnome.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: JavaScript in GNOME List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jul 2015 17:26:52 -0000 --089e0158b59c0cc146051c2f2062 Content-Type: text/plain; charset=UTF-8 Hi All, I wish to know how to use this function using gjs and more importantly how to parse and listen for results returned by the spawned shell command. The documentation on https://people.gnome.org/~gcampagna/docs/GLib-2.0/GLib.spawn_async_with_pipes.html seems a bit confusing as I have just begun with gjs and gtk. I wish to parse the standard-output and standard-error . Any thoughts or example code or project where this is already implemented would be highly beneficial for me. Thanks Bhanu Pratap Chaudhary --089e0158b59c0cc146051c2f2062 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi All,

I wish to know how to use this functi= on using gjs and more importantly how to parse and listen for results retur= ned by the spawned shell command.=C2=A0

The docume= ntation on=C2=A0https://people.gnome.org/~gcampagna/doc= s/GLib-2.0/GLib.spawn_async_with_pipes.html seems a bit confusing as I = have just begun with gjs and gtk.

I wish to parse = the standard-output and standard-error . Any thoughts or example code or pr= oject where this is already implemented would be highly beneficial for me.<= /div>

Thanks

Bhanu Pratap= Chaudhary
--089e0158b59c0cc146051c2f2062--