On 9 June 2014 02:03, gvim <gvi...@gmail.com> 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 "." month "." year " -ut"
> hour ":" min)
>         flags "-roundmin -head -true -eswe"]
>         (exec/sh [bin data flags])))
>
>
> gh1.tmp> @(calc 31 11 1967 16 45 0 "Europe/London")
> {:exit 1, :out "illegal option -roundmin -head -true -eswe\n", :err nil,
> :exception #<ExecuteException org.apache.commons.exec.ExecuteException:
> Process exited with an error: 1 (Exit value: 1)>}
>
>
> Why has exec/sh added a newline to the command line? How to get rid of it?

It hasn't. That is the output from the command you executed.

Ray.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to