Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Aug 2002 12:19:44 -0400
From:      Antonio Inojal <tony12@mac.com>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   piping to a script
Message-ID:  <A2239392-B90F-11D6-872F-000502A96E77@mac.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A2239392-B90F-11D6-872F-000502A96E77>