Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #10642
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: (java.lang.Runtime()).exec(new String[]) ... |
| Date | 2011-12-10 02:44 -0800 |
| Organization | Canadian Mind Products |
| Message-ID | <kvd6e7d7jt9dlo0iuom73gc39hcvetd02e@4ax.com> (permalink) |
| References | <1322956063.644169@nntp.aceinnovative.com> <1323496863.17965@nntp.aceinnovative.com> |
On 10 Dec 2011 06:01:03 GMT, lbrt chx _ gemale wrote, quoted or
indirectly quoted someone who said :
>~
> Why doesn't something like, say:
>~
> Process proc = (java.lang.Runtime()).exec((new String[]{"date;", "time","ls", "-l", "/media/sda1/Physical_Basis.flv;", "date;"}));
because date and time are not programs, but elements of a script that
requires a commend interpreter program.
See http://mindprod.com/jgloss/exec.html
for how to spawn a command interpreter.
--
Roedy Green Canadian Mind Products
http://mindprod.com
For me, the appeal of computer programming is that
even though I am quite a klutz,
I can still produce something, in a sense
perfect, because the computer gives me as many
chances as I please to get it right.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
(java.lang.Runtime()).exec(new String[]) ... lbrt chx _ gemale - 2011-12-10 06:01 +0000 Re: (java.lang.Runtime()).exec(new String[]) ... Lew <lewbloch@gmail.com> - 2011-12-09 23:00 -0800 Re: (java.lang.Runtime()).exec(new String[]) ... Roedy Green <see_website@mindprod.com.invalid> - 2011-12-10 02:44 -0800 Re: (java.lang.Runtime()).exec(new String[]) ... Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-12-12 14:31 +0000
csiph-web