Re: clj-commons-exec/sh adding newline to command

2014-06-09 Thread gvim
On 09/06/2014 14:04, Ray Miller wrote: I suspect exec/sh is expecting a list of options. The way you are calling it, swetest is called with only two arguments (data and flags). When you type the command at the shell, the shell splits on whitespace before invoking exec, so it sees 8 arguments. I

Re: clj-commons-exec/sh adding newline to command

2014-06-09 Thread Ray Miller
On 9 June 2014 12:39, gvim wrote: > Then why does this work when executed manually in the shell? > > ./swetest -p0123456789t -fPZl -b14.10.1960 -ut13:45 -roundmin -head > -true -eswe I suspect exec/sh is expecting a list of options. The way you are calling it, swetest is called with only tw

Re: clj-commons-exec/sh adding newline to command

2014-06-09 Thread gvim
Then why does this work when executed manually in the shell? ./swetest -p0123456789t -fPZl -b14.10.1960 -ut13:45 -roundmin -head -true -eswe gvim On 09/06/2014 08:21, Ray Miller wrote: On 9 June 2014 02:03, gvim wrote: (ns gh1.tmp (:require [clj-commons-exec :as exec]

Re: clj-commons-exec/sh adding newline to command

2014-06-09 Thread Ray Miller
On 9 June 2014 02:03, gvim wrote: > (ns gh1.tmp > (:require [clj-commons-exec :as exec] > [clj-time.core :as t])) > > > > (defn calc [day month year hour min sec zone] > (let [bin "/Users/zephyr/html/astro/bin/swetest" > data (str "-p0123456789t -fPZl -b" day "