Re: Possible to have node contain the results of a command?

2017-05-15 Thread Edward K. Ream
On Mon, May 15, 2017 at 9:03 AM, Terry Brown wrote: # this script, when executed in a node > from subprocess import Popen, PIPE > cmd = Popen(['diff', 'this', 'that'], stdin=PIPE, stderr=PIPE) > p.b += "%s\n%s" % cmd.communicate() > c.redraw() > # appends this text to that node, 'None' being stdo

Re: Possible to have node contain the results of a command?

2017-05-15 Thread Terry Brown
On Sun, 14 May 2017 14:15:25 -0700 Lang Hurst wrote: > I have two nodes that I run a `diff -y` on and use the results in a > document. It would be cool to be able to include the node in my > document outline and have the results of the command show up and skip > a couple manual steps, or really s

Re: Possible to have node contain the results of a command?

2017-05-14 Thread Edward K. Ream
On Sun, May 14, 2017 at 4:15 PM, Lang Hurst wrote: > I have two nodes that I run a `diff -y` on and use the results in a > document. It would be cool to be able to include the node in my document > outline and have the results of the command show up and skip a couple > manual steps, or really set

Possible to have node contain the results of a command?

2017-05-14 Thread Lang Hurst
I have two nodes that I run a `diff -y` on and use the results in a document. It would be cool to be able to include the node in my document outline and have the results of the command show up and skip a couple manual steps, or really setting up some inodify trigger. Does that make sense? Spent the