Fwd: Re: [exec] Re: Redirect shell output

2010-10-31 Thread Siegfried Goeschl
Hi Johan, the redirection you are using is provided be the shell and not by the executable you invoke. So you have to put the stuff into a shell script. Cheers, Siegfried Goeschl Original Message Subject: Re: [exec] Re: Redirect shell output Date: Sun, 31 Oct 2010 13:58:27

RE: [exec] Re: Redirect shell output

2010-10-31 Thread Martin Gainty
010 13:58:27 + > From: johan_he...@yahoo.se > To: user@commons.apache.org > Subject: Re: [exec] Re: Redirect shell output > > Hi again, > > I have tried to wrap it in a script now and it works. I am just a bit > curious is there any reason why the command (pfexec zfs s

Re: [exec] Re: Redirect shell output

2010-10-31 Thread Johan Hertz
Hi again, I have tried to wrap it in a script now and it works. I am just a bit curious is there any reason why the command (pfexec zfs send rpool/d...@f20101031 | gzip > F20101031.gz) can't work as it is? Regards Johan On 31/10/2010 12:34, Siegfried Goeschl wrote: Hi Johan, sorry for bugg

Re: [exec] Re: Redirect shell output

2010-10-31 Thread Johan Hertz
Hi, Siegfried, I have not had a chance to have a look at this before. But it tried it now and it failed, maybe there is something obvious that I am doing wrong here. String commandString = "pfexec zfs send rpool/d...@f20101031 | gzip > F20101031.gz"; Executor

Re: [exec] Re: Redirect shell output

2010-10-31 Thread Siegfried Goeschl
Hi Johan, sorry for bugging you - any progress from your side? We also appreciate success stories ... :-) Thanks in advance Siegfried Goeschl On 10/24/10 11:33 PM, Johan Hertz wrote: Hi Siegfried, It is a bit late for me to test this now, but thank you very much for pointing me in the righ

Re: [exec] Re: Redirect shell output

2010-10-24 Thread Johan Hertz
Hi Siegfried, It is a bit late for me to test this now, but thank you very much for pointing me in the right direction. Regards Johan On 24/10/2010 20:51, Siegfried Goeschl wrote: Hi Johan, I used the following test >>> Start >>> public void testMe() throws Exception { if(OS.i

Re: [exec] Re: Redirect shell output

2010-10-24 Thread Siegfried Goeschl
Hi Johan, I used the following test >>> Start >>> public void testMe() throws Exception { if(OS.isFamilyUnix()) { File testScript = TestUtil.resolveScriptForOS("./src/test/scripts/standalone"); System.out.println("Executing the following test script : " + t

[exec] Re: Redirect shell output

2010-10-24 Thread Johan Hertz
Hi Paul, Sorry about that. /Regards Johan On 24/10/2010 11:11, Paul Libbrecht wrote: Johan, which project are you asking this from? commons-exec? Please read the netiquette of this list... you need to make this clear otherwise you don't reach the right people. paul On 24 oct. 2010, at 10: