Re: Pipe the content of a variable to a process [message #173034 is a reply to message #173032] |
Fri, 18 March 2011 12:18 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 3/18/2011 7:42 AM, Marco wrote:
> On 2011-03-17 Jerry Stuckle<jstucklex(at)attglobal(dot)net> wrote:
>
>>> I made some progress. But I still have problems. In the following example
>>> I can use »cat« as process without problems. But gnuplot produces no
>>> output, but a return value of zero, that means it's successfull. But
>>> where's the output?
>>>
>>> When I call gnuplot with the »passthru« command it works as expected that
>>> means that it is in the PATH and produces output on stdout with the given
>>> input. What's the problem here?
>>>
>>> [some code]
>>>
>>> Marco
>>>
>>
>> What's in stderr? What happens if you write stdout and stderr to a file
>> (for testing)?
>
> They are both empty.
>
>
> Marco
>
Well, one of the things I see is you're using the -e flag with
passthru() but not with proc_open(). That's a huge difference.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|