From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ishan Arora" Newsgroups: gmane.lisp.guile.user Subject: Re: X11 bindings and shell bindings Date: Thu, 18 Sep 2008 20:40:38 +0530 Message-ID: <59ea12330809180810o389e5b5ega29f57d29c7d8446@mail.gmail.com> References: <59ea12330809180538u6f7d7a42gdfef60909ad96157@mail.gmail.com> <48D25D29.7060505@wilsonjc.us> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3291_32069175.1221750638752" X-Trace: ger.gmane.org 1221751165 6257 80.91.229.12 (18 Sep 2008 15:19:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Sep 2008 15:19:25 +0000 (UTC) Cc: Guile User Mailing List To: "Jon Wilson" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Sep 18 17:20:18 2008 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KgLIl-0004r2-EH for guile-user@m.gmane.org; Thu, 18 Sep 2008 17:20:15 +0200 Original-Received: from localhost ([127.0.0.1]:37920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgLHk-0008UZ-0A for guile-user@m.gmane.org; Thu, 18 Sep 2008 11:19:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KgL9Y-0005hK-TU for guile-user@gnu.org; Thu, 18 Sep 2008 11:10:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KgL9W-0005gq-RC for guile-user@gnu.org; Thu, 18 Sep 2008 11:10:43 -0400 Original-Received: from [199.232.76.173] (port=33885 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgL9W-0005gn-GK for guile-user@gnu.org; Thu, 18 Sep 2008 11:10:42 -0400 Original-Received: from mail-gx0-f12.google.com ([209.85.217.12]:45263) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KgL9W-0006Aa-70 for guile-user@gnu.org; Thu, 18 Sep 2008 11:10:42 -0400 Original-Received: by gxk5 with SMTP id 5so29746752gxk.18 for ; Thu, 18 Sep 2008 08:10:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=ENEwauZYJyZ1dVwP56ed74sLvtxD8kqTt4RHFO42j9s=; b=hcKhb0i3lbXfBctoVyvDMIy6QjXzuaqNfG0o9Jeqs4uPj00vvlgQouB5I0QKcqFXj2 m8zS1mMCiGbeBxvs/a0wJK6z8YHZZb75ZD1aI3k4glR9b37ekrdzH7PfGGJJJttI7UL/ pCkT7ARVDlL0jJl8I5we5mGwPdj796yipwejA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=JNhRNdjqc9Y3TpLh1vsl74k2m25RH0agVMGr7ZJNgkXXuapYyR1xoubPTwWKfVb9I7 fic0RH5H+DkaEZw9YecNfgOLwuOdQ/rDa9u0UtU3erEI/NZJk8aBc33td2tYEkHsaSv1 5Kq7KQIl/arZshce1lpJ4omGz9mBRnEtIm0s4= Original-Received: by 10.100.8.4 with SMTP id 4mr5409638anh.137.1221750638782; Thu, 18 Sep 2008 08:10:38 -0700 (PDT) Original-Received: by 10.100.254.11 with HTTP; Thu, 18 Sep 2008 08:10:38 -0700 (PDT) In-Reply-To: <48D25D29.7060505@wilsonjc.us> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6774 Archived-At: ------=_Part_3291_32069175.1221750638752 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Thanks for the reply. I tried system. It calls the code synchronously, and returns a number for success or failure of the command. Is there a way such that the stdout output of the command is returned as a string? Thanks again. Regards, Ishan On Thu, Sep 18, 2008 at 7:22 PM, Jon Wilson wrote: > Hi Ishan, > * There are guile bindings for gtk and for gnome; I don't know of any > other X11 bindings. > > * Try (system "ls -l"). Look it up in the POSIX section in the manual. > Regards, > Jon > > > Ishan Arora wrote: > >> Hi, >> >> Is there a procedure to get mouse position. And is there a procedure to >> synchronously run a shell code and return the output as a String. Thanks. >> >> Regards, >> Ishan >> > > ------=_Part_3291_32069175.1221750638752 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,

Thanks for the reply. I tried system. It calls the code synchronously, and returns a number for success or failure of the command. Is there a way such that the stdout output of the command is returned as a string? Thanks again.

Regards,
Ishan

On Thu, Sep 18, 2008 at 7:22 PM, Jon Wilson <jsw@wilsonjc.us> wrote:
Hi Ishan,
 * There are guile bindings for gtk and for gnome; I don't know of any other X11 bindings.

 * Try (system "ls -l").  Look it up in the POSIX section in the manual.
Regards,
Jon


Ishan Arora wrote:
Hi,

Is there a procedure to get mouse position. And is there a procedure to synchronously run a shell code and return the output as a String. Thanks.

Regards,
Ishan


------=_Part_3291_32069175.1221750638752--