X-Received: by 10.66.72.71 with SMTP id b7mr1545151pav.33.1357931277085; Fri, 11 Jan 2013 11:07:57 -0800 (PST) Received: by 10.50.184.193 with SMTP id ew1mr67486igc.12.1357931276856; Fri, 11 Jan 2013 11:07:56 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!169.228.66.3.MISMATCH!ihnp4.UCSD.Edu!newsfeed.news.ucla.edu!usenet.stanford.edu!ld4no15460470pbb.0!news-out.google.com!6ni100440pbd.1!nntp.google.com!ld4no15460462pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Fri, 11 Jan 2013 11:07:56 -0800 (PST) In-Reply-To: <05a24a02-1ac3-4866-ba2b-20c488793b96@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T NNTP-Posting-Host: 69.28.149.29 References: <05a24a02-1ac3-4866-ba2b-20c488793b96@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: problem with multiword args and Runtime.exec() From: Lew Injection-Date: Fri, 11 Jan 2013 19:07:57 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.java.programmer:21333 On Friday, January 11, 2013 8:33:39 AM UTC-8, Aryeh M. Friedman wrote: > No matter what version of Runtime.exec I call I can not make a arg that h= as multiple words in it (*NOT* multiple args but a single one) for example = if I need to issue the following command in unix I can not find a way to do= the stuff in "'s as a single arg [the called program requires this... i.e.= it *MUST NOT* be treated as different elements of String[] args if it was = a java program]): >=20 >=20 >=20 > rdiff-backup --remote-schema "ssh -C -p9222 %s rdiff-backup --server" use= rname@remoteserver::/path_to/filestobackup /path_to/backedupfiles Please provide an SSCCE http://sscce.org/ of your code using=20 http://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html#exec(java.l= ang.String[]) and its output. --=20 Lew