Re: [Discuss-gnuradio] Using Popen to start a pipe and pass the input

2013-07-29 Thread Shashank Gaur
Apologies, I asked on Stack Overflow but posted here as well. Thanks On Mon, Jul 29, 2013 at 5:08 PM, Tom Rondeau wrote: > On Mon, Jul 29, 2013 at 4:02 AM, Shashank Gaur wrote: >> Hello All, >> >> I am trying to use popen to open an application under a block. >> >> This looks something like

Re: [Discuss-gnuradio] Using Popen to start a pipe and pass the input

2013-07-29 Thread Tom Rondeau
On Mon, Jul 29, 2013 at 4:02 AM, Shashank Gaur wrote: > Hello All, > > I am trying to use popen to open an application under a block. > > This looks something like that: > > fp = popen(command, "w"); //doing it in write mode > > if(!fp){ > #Handle the error > } > > .. > > pclose(fp); > > Now t

[Discuss-gnuradio] Using Popen to start a pipe and pass the input

2013-07-29 Thread Shashank Gaur
Hello All, I am trying to use popen to open an application under a block. This looks something like that: fp = popen(command, "w"); //doing it in write mode if(!fp){ #Handle the error } .. pclose(fp); Now the thing is even if I am trying to track using (fp != NULL) it still keep executin