Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #10642
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Roedy Green <see_website@mindprod.com.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: (java.lang.Runtime()).exec(new String[]) ... |
| Date | Sat, 10 Dec 2011 02:44:56 -0800 |
| Organization | Canadian Mind Products |
| Lines | 22 |
| Message-ID | <kvd6e7d7jt9dlo0iuom73gc39hcvetd02e@4ax.com> (permalink) |
| References | <1322956063.644169@nntp.aceinnovative.com> <1323496863.17965@nntp.aceinnovative.com> |
| Reply-To | Roedy Green <see_website@mindprod.com.invalid> |
| NNTP-Posting-Host | Z2l1DcCELS0rATq8NqV4Sw.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| X-Newsreader | Forte Agent 6.00/32.1186 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:10642 |
Show key headers only | View raw
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