Re: [O] eval code snippet before tangling config file

2016-05-11 Thread Stig Brautaset
"Charles C. Berry" writes: > On Wed, 11 May 2016, Stig Brautaset wrote: >> >> I'm trying to evaluate a line of shell code and put its output into a >> snippet that will be tangled to a file. My best attempt so far: [...] > Try `<>'. > > See (info "(org) Noweb reference syntax") > > ... <> ..

Re: [O] eval code snippet before tangling config file

2016-05-11 Thread Charles C. Berry
On Wed, 11 May 2016, Stig Brautaset wrote: Hi, I'm trying to evaluate a line of shell code and put its output into a snippet that will be tangled to a file. My best attempt so far: #+NAME: hostname #+BEGIN_SRC sh hostname -s #+END_SRC #+BEGIN_SRC conf :tangle /usr/local/etc/leafnode/c

[O] eval code snippet before tangling config file

2016-05-11 Thread Stig Brautaset
Hi, I'm trying to evaluate a line of shell code and put its output into a snippet that will be tangled to a file. My best attempt so far: #+NAME: hostname #+BEGIN_SRC sh hostname -s #+END_SRC #+BEGIN_SRC conf :tangle /usr/local/etc/leafnode/config :noweb tangle expire = 20 s