From owner-freebsd-hackers Mon Aug 26 9:18:30 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C919437B400 for ; Mon, 26 Aug 2002 09:18:27 -0700 (PDT) Received: from smtpout.mac.com (smtpout.mac.com [204.179.120.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73C0143E72 for ; Mon, 26 Aug 2002 09:18:27 -0700 (PDT) (envelope-from tony12@mac.com) Received: from smtp-relay01.mac.com (smtp-relay01-en1 [10.13.10.224]) by smtpout.mac.com (8.12.1/MantshX 2.0) with ESMTP id g7QGIR2q005842 for ; Mon, 26 Aug 2002 09:18:27 -0700 (PDT) Received: from asmtp02.mac.com (asmtp02-qfe3 [10.13.10.66]) by smtp-relay01.mac.com (8.12.1/8.12.1/1.0) with ESMTP id g7QGIRVw004628 for ; Mon, 26 Aug 2002 09:18:27 -0700 (PDT) Received: from localhost ([216.189.175.235]) by asmtp02.mac.com (Netscape Messaging Server 4.15) with ESMTP id H1GLAQ00.NTP for ; Mon, 26 Aug 2002 09:18:26 -0700 Date: Mon, 26 Aug 2002 12:19:44 -0400 Mime-Version: 1.0 (Apple Message framework v482) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: piping to a script From: Antonio Inojal To: freebsd-hackers@FreeBSD.ORG Content-Transfer-Encoding: 7bit Message-Id: X-Mailer: Apple Mail (2.482) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I am trying to pipe content from a C program into a shell script. What I want to do is to pass the information coming from the C app, into an environmental variable in the shell script: my_app | my_script . Say that my app spits out the date, ok? I want that an env variable declared in my_script pick up the data being piped and make that data its value. If anyone knows how to do this, or if I have not explained myself right please contact me. Thank You very much. Tony To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message