Date: Mon, 26 Aug 2002 11:47:35 -0700 From: Rohit Grover <rgrover@panasas.com> To: Antonio Inojal <tony12@mac.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: piping to a script Message-ID: <3D6A77C7.50FFCE3@panasas.com> References: <A2239392-B90F-11D6-872F-000502A96E77@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Antonio Inojal wrote: > > 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. $ ENV_VAR=`my_app` my_script PS: hackers is not the right forum for such questions. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D6A77C7.50FFCE3>