Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-16 Thread Eric in San Diego
Thanks for everyone's input. I think at this point I've concluded that this is not a clojure problem, but rather something going on with the program I'm calling in the shell. I'm talking to the support community there. In the meantime I've found a work-around. Thanks again for everyone's hel

Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-15 Thread Anthony Grimes
You don't have to post your whole application, but you really, really need to give us a small example that causes your problem. We can't work with "I did x with y and it doesn't work.". Try to water down an isolated piece of code that we can run that causes your issue. On Wednesday, July 11, 20

Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-15 Thread Denis Labaye
On Thu, Jul 12, 2012 at 12:21 AM, Eric in San Diego wrote: > In a shell, I can call > > > app arg1 arg2 arg3 arg4 arg5 arg6 arg7 > > and get my expected results. > > However, if I make what I think is the same call programmatically in > clojure: > > (ns ... >(:require [clojure.java.shell :as s

Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-12 Thread John Szakmeister
On Wed, Jul 11, 2012 at 7:47 PM, Eric in San Diego wrote: > > It's very application specific, but it's "Object 'test' does not have a > field named 'test1' c:/path/to/importTest", suggesting that it's not > inferring the value of an 'I' parameter which should indicate a directory > within which t

Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-11 Thread Eric in San Diego
It's very application specific, but it's "Object 'test' does not have a field named 'test1' c:/path/to/importTest", suggesting that it's not inferring the value of an 'I' parameter which should indicate a directory within which to search for a file called 'test' which included some trivial co

Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-11 Thread Michael Klishin
Eric in San Diego: > That's why I'm hoping there is some way I can compare and contrast the actual > inputs that get fed into the app. At least post your exception message. MK mich...@defprotocol.org signature.asc Description: Message signed with OpenPGP using GPGMail

Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-11 Thread Peter Buckley
m Date: Wed, 11 Jul 2012 15:21:03 To: Reply-To: clojure@googlegroups.com Subject: Clojure shell calls results inconsistent with actual shell calls. In a shell, I can call > app arg1 arg2 arg3 arg4 arg5 arg6 arg7 and get my expected results. However, if I make what I think is the same call pro

Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-11 Thread Michael Gardner
On Jul 11, 2012, at 5:40 PM, Eric in San Diego wrote: > Unfortunately the application in question is kinda...involved. It's a call > to a tool provided by a third party, and installing the whole thing is > non-trivial. > > That's why I'm hoping there is some way I can compare and contrast the

Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-11 Thread Eric in San Diego
Unfortunately the application in question is kinda...involved. It's a call to a tool provided by a third party, and installing the whole thing is non-trivial. That's why I'm hoping there is some way I can compare and contrast the actual inputs that get fed into the app. On Wednesday, July 11

Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-11 Thread Michael Klishin
Eric in San Diego: > my app is throwing an error How about posting the error (and a snippet of your code)? Bonus points for a Github repository that can be used to reproduce. MK mich...@defprotocol.org signature.asc Description: Message signed with OpenPGP using GPGMail

Clojure shell calls results inconsistent with actual shell calls.

2012-07-11 Thread Eric in San Diego
In a shell, I can call > app arg1 arg2 arg3 arg4 arg5 arg6 arg7 and get my expected results. However, if I make what I think is the same call programmatically in clojure: (ns ... (:require [clojure.java.shell :as sh] )) (defn test [] (sh/sh "app" "arg1" "arg2" "arg3" "arg4" "arg5" ar