Launching shell commands from Java is a nuisance.  Commons Exec helps
a little bit:
http://commons.apache.org/exec/
-Stuart Sierra

On Aug 25, 8:00 am, Parth Malwankar <[EMAIL PROTECTED]> wrote:
> I want to run a shell command through Clojure
> so I tried the following which doesn't work:
>
> user=> (.. Runtime (getRuntime) (exec "vim"))
> [EMAIL PROTECTED]
> user=> (.. Runtime (getRuntime) (exec "/usr/bin/vim"))
> [EMAIL PROTECTED]
> user=> (.. Runtime (getRuntime) (exec "ls"))
> [EMAIL PROTECTED]
>
> I may be doing something really silly here as I
> don't really know Java. Whats the right way to do this?
>
> Thanks.
> Parth
--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to