From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Orm Finnendahl Newsgroups: gmane.lisp.guile.user Subject: Re: console info Date: Sat, 8 May 2010 12:03:49 +0200 Organization: Musikhochschule Freiburg, Freiburg, Germany Message-ID: <20100508100349.GB28863@varese> References: <2A612F7112B54D1DA52B54DA21692B1A@SvenPC> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1273329869 29050 80.91.229.12 (8 May 2010 14:44:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 8 May 2010 14:44:29 +0000 (UTC) Cc: guile-user@gnu.org To: Sven =?iso-8859-15?Q?Sch=E4fer?= Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat May 08 16:44:28 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1OAlGV-0005pH-NR for guile-user@m.gmane.org; Sat, 08 May 2010 16:44:28 +0200 Original-Received: from localhost ([127.0.0.1]:54300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OAlGU-0002Zw-Gz for guile-user@m.gmane.org; Sat, 08 May 2010 10:44:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OAgt7-0000vk-GV for guile-user@gnu.org; Sat, 08 May 2010 06:04:01 -0400 Original-Received: from [140.186.70.92] (port=35507 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OAgt5-0000vc-Te for guile-user@gnu.org; Sat, 08 May 2010 06:04:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OAgt4-0001j7-84 for guile-user@gnu.org; Sat, 08 May 2010 06:03:59 -0400 Original-Received: from mail.mh-freiburg.de ([193.197.131.2]:37822) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OAgt3-0001hz-Rm for guile-user@gnu.org; Sat, 08 May 2010 06:03:58 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mh-freiburg.de (Postfix) with ESMTP id 8BDFDF10AB; Sat, 8 May 2010 12:03:49 +0200 (CEST) Original-Received: from mail.mh-freiburg.de (localhost [127.0.0.1]) by localhost (AvMailGate-2.1.0-19) id 31078-0d3t05; Sat, 08 May 2010 12:03:49 +0200 Original-Received: from inm.mh-freiburg.de (unknown [192.168.242.2]) by mail.mh-freiburg.de (Postfix) with ESMTP id 5F1DBF0F30; Sat, 8 May 2010 12:03:49 +0200 (CEST) Original-Received: from orm by grisey with local (masqmail 0.2.21) id 1OAgsv-8Pc-00; Sat, 08 May 2010 12:03:49 +0200 Mail-Followup-To: Sven =?iso-8859-15?Q?Sch=E4fer?= , guile-user@gnu.org Content-Disposition: inline In-Reply-To: <2A612F7112B54D1DA52B54DA21692B1A@SvenPC> X-Disclaimer: Why are you listening to me? X-Operating-System: Linux User-Agent: Mutt/1.5.18 (2008-05-17) X-AntiVirus: checked by AntiVir MailGate (version: 2.1.0-19; AVE: 7.9.1.236; VDF: 7.10.7.66; host: forte.mh-freiburg.de) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sat, 08 May 2010 10:29:39 -0400 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:7768 Archived-At: Hi Sven, I don't know whether there is a way to change the prompt to disappear completely without changing the sources (as this is generally not the intended behaviour) but as a workaround you could pipe the guile output through sed to remove the prompt. Try this command in a terminal: guile | sed -e 's/^guile>//g' That should do what you want. You can do that programmatically as well or invoke this as a script from within your program. In general your approach seems strange to me. Without exactly knowing how to do it I'd suggest you look for a way to approach guile's read routine directly and handle the results internally rather than dealing with netcat and stdout. -- Orm Am Saturday, den 08. May 2010 um 08:28:38 Uhr (+0200) schrieb Sven Sch=C3= =A4fer: > =C2=A0 >=20 > Hi obj. >=20 > =C2=A0 >=20 > I forgot to write that I will use Guile on a linux system. >=20 > Only the output =E2=80=9Cguile>=E2=80=9D should be disable. All other = outputs from Guile > should go to the stdout. >=20 > =C2=A0 >=20 > A short overview: >=20 > I will write the output from Guile in variables. A second program > communicates with the =E2=80=9CGuile=E2=80=9D-program over netcat. Thi= s program sends > instructions to the Guile program. Then the Guile program returns some > data (for example an integer). When I now write the output in the seco= nd > program into a variable, I write also the =E2=80=9Cguile>=E2=80=9D int= o it. Because of > this I will only disable the output of =E2=80=9Cguile>=E2=80=9D. >=20 > =C2=A0 >=20 > I hope I write this a little bit understandable. J