On Oct 1, 2009, at 7:39 PM, Nick Day wrote:

>
> Hey,
>
> I've just been trying to run a couple of simple commands using shell-
> out (e.g. (sh "dir")) in a repl in Windows command prompt, but am
> running up against errors of the type
>
> java.io.IOException: Cannot run program "dir": CreateProcess error=2,
> The system cannot find the file specified (NO_SOURCE_FILE:16)
>

"dir" is not an executable program on Windows, it's a command  
supported by cmd.exe. Try "cmd.exe /c dir" instead.

I guess Cygwin aliases dir to ls, but I'm not sure (I'm neither a  
Windows nor a Cygwin user).

HTH,
Stefan
--
Stefan Tilkov, http://www.innoq.com/blog/st/

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to