FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Pipe the content of a variable to a process
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Pipe the content of a variable to a process [message #173037 is a reply to message #173036] Fri, 18 March 2011 14:05 Go to previous messageGo to previous message
Marco is currently offline  Marco
Messages: 11
Registered: March 2011
Karma:
Junior Member
On 2011-03-18 Jerry Stuckle <jstucklex(at)attglobal(dot)net> wrote:

> I understand that produces the correct output. But from what I read in
> the doc, -e says to use stdin - which is what you're trying to use.
> Without -e it goes to the command line, which you are not doing. So
> it'd doing exactly what you tell it to do - nothing.

That's incorrect. Without »-e« gnuplot reads from stdin, with »-e« from the
command line. You can check this.

gnuplot -e 'set terminal svg;plot sin(x)'
echo 'set terminal svg;plot sin(x)' | gnuplot

give both the same output.

> I suggest you ask the gnuplot people. I don't think the problem is the
> output stream is failing - I think your commands are incorrect.

I know gnuplot pretty well. Without arguments it can be used directly in a
pipe (with proper input on stdin, of course). It would be difficult to get
help in the gnuplot group, since it works on the command line.


Marco
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: use of array_key_exists() to prevent duplicates?
Next Topic: $_POST not set on 404
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 06:58:31 GMT 2024

Total time taken to generate the page: 0.04230 seconds