Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #29834
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Martin Gregorie <martin@address-in-sig.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: A "current directory" concept for Java... |
| Date | Sun, 24 Aug 2014 10:37:56 +0000 (UTC) |
| Organization | A noiseless patient Spider |
| Lines | 52 |
| Message-ID | <ltcfa4$9ag$1@dont-email.me> (permalink) |
| References | <slrnlvet48.fp3.avl@login.logic.tuwien.ac.at> <lt85hb$gnk$1@dont-email.me> <slrnlvfl43.fp3.avl@login.logic.tuwien.ac.at> <lta871$22r$1@dont-email.me> <slrnlvhgf8.fp3.avl@login.logic.tuwien.ac.at> <ltaqbk$gnc$1@dont-email.me> <slrnlvj9aq.fp3.avl@login.logic.tuwien.ac.at> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Sun, 24 Aug 2014 10:37:56 +0000 (UTC) |
| Injection-Info | mx05.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="9552"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187txen8ONjDP9SX+fscQ8Bo+JCozIJSGQ=" |
| User-Agent | Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) |
| Cancel-Lock | sha1:/jhqGodAXeMpWXdHnlPO3rcilnQ= |
| Xref | csiph.com comp.lang.java.programmer:29834 |
Show key headers only | View raw
On Sun, 24 Aug 2014 08:42:02 +0000, Andreas Leitgeb wrote: > That's not quite the "whole" truth ;-) > Quite probably not, so I obviously messed something. > ProcessBuilder has a couple of methods to tell what to do with spawnee's > streams. You can set them up to be redirected to current process's > streams, > cause them to be redirected to files and some more options. > What I was commenting about is that calling ProcessBuilder.start() creates a Process and must start the load and process it controls since there is apparently no Process.start or Process.run method. I was expecting to have either: - a way of redirecting the standard streams provided by ProcessBuilder as well as the redirectErrorStream() switch that would do the job before ProcessBuilder.start is called - the ability to use the Process.getXXXStream() methods before calling a method that would allow the Process to run. Instead, I don't see either of these, so what have I missed? > It's only when you keep it at default, then it is set up for > pipe-streams and what you then do with the created Process is merely > pick up your side of these established streams. > So, you are saying that the Process actually runs for a short time until it either wants input or fills an output buffer and then blocks until the streams have been redirected via the getXXXStream() methods? If so, that seems like a somewhat mickey mouse approach. > Could be a legacy from old Dos-days, where installed programs often > expected to be invoked from their installation directory. Thats when > one had a couple of .bat files for each application, that would cd to > the respective one's installation dir and then start the application. > Agreed. I haven't done much/any programming in the Windows environment since W95, so what is the default these days for command line/scripted execution or for running a program via an icon click? Does the current working directory have the same default in both cases and, if so, can you tell me what it is: this may be useful stuff to know for code portability reasons. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
A "current directory" concept for Java... Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-08-22 16:49 +0000
Re: A "current directory" concept for Java... Jeff Higgins <jeff@invalid.invalid> - 2014-08-22 14:50 -0400
Re: A "current directory" concept for Java... Jeff Higgins <jeff@invalid.invalid> - 2014-08-22 15:10 -0400
Re: A "current directory" concept for Java... Martin Gregorie <martin@address-in-sig.invalid> - 2014-08-22 19:26 +0000
Re: A "current directory" concept for Java... Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-08-22 23:38 +0000
Re: A "current directory" concept for Java... Martin Gregorie <martin@address-in-sig.invalid> - 2014-08-23 14:24 +0000
Re: A "current directory" concept for Java... Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-08-23 16:31 +0000
Re: A "current directory" concept for Java... Martin Gregorie <martin@address-in-sig.invalid> - 2014-08-23 19:34 +0000
Re: A "current directory" concept for Java... Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-08-24 08:42 +0000
Re: A "current directory" concept for Java... Martin Gregorie <martin@address-in-sig.invalid> - 2014-08-24 10:37 +0000
Re: A "current directory" concept for Java... Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-08-24 13:41 +0000
Re: A "current directory" concept for Java... Martin Gregorie <martin@address-in-sig.invalid> - 2014-08-24 18:33 +0000
Re: A "current directory" concept for Java... Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-08-24 22:33 +0000
Re: A "current directory" concept for Java... Martin Gregorie <martin@address-in-sig.invalid> - 2014-08-25 00:14 +0000
Re: A "current directory" concept for Java... Jeff Higgins <jeff@invalid.invalid> - 2014-08-22 19:45 -0400
Re: A "current directory" concept for Java... Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-08-23 15:32 +0000
Re: A "current directory" concept for Java... Jeff Higgins <jeff@invalid.invalid> - 2014-08-23 12:49 -0400
Re: A "current directory" concept for Java... Jeff Higgins <jeff@invalid.invalid> - 2014-08-23 17:40 -0400
Re: A "current directory" concept for Java... Jan Burse <janburse@fastmail.fm> - 2014-08-23 10:31 +0200
With new Path (Re: A "current directory" concept for Java...) Jan Burse <janburse@fastmail.fm> - 2014-08-23 10:48 +0200
Re: With new Path (Re: A "current directory" concept for Java...) Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-08-23 14:38 +0000
Re: A "current directory" concept for Java... Roedy Green <see_website@mindprod.com.invalid> - 2014-08-23 05:31 -0700
csiph-web