🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7431

Re: How to use getRuntime().exec and Unix Pipe??

#7431
From: Joi Ellis [TeamB]
Date: Fri, 22 Jun 2001 21:43
18 lines
1366 bytes
Tom Harrop <tch1@osi.com> wrote:
> Ok, I know how to use the getRuntime().exec command.
> But, I can't seem to get this to work with a Unix Pipe???

Pipes are processed at the moment the command line is parsed by your
interactive shell.  When using runtime.exec(), there is no parsing
done.

Write the command into a temporary shell script, and launch that 
temporary script instead.



-- 
Joi Ellis (TeamB)               http://www.teamb.com/
No direct email, please.
For best results, post on news server newsgroups.borland.com!
Newsgroup Info: http://www.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <3b33bbef_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews!not-for-mail
References: <3b33b159$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,88fbb3b1aa86f386
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-22 14:47:00 PST
Message-ID: <3b33bbef_2@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: How to use getRuntime().exec and Unix Pipe??
Newsgroups: borland.public.jbuilder.java.language
References: <3b33b159$1_2@dnews>
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.16-3 (i686))
NNTP-Posting-Host: 209.46.41.66
Date: 22 Jun 2001 14:43:11 -0700
X-Trace: dnews 993246191 209.46.41.66 (22 Jun 2001 14:43:11 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews!not-for-mail