ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henning Bredel <h.bre...@gmx.de>
Subject Re: <exec> problem
Date Sun, 15 Jun 2008 08:21:03 GMT
On Sunday 15 June 2008 09:43:54 Guy Catz wrote:
> Hi.
>
> I want to run an exec and I want its output to be directed to /dev/null.
> But, when I run "myexec -r -a &gt; /dev/null" I get an error saying that
> the engine tried to run 3 lines - myexec -r -a
> &gt;
> /dev/null
>
> and not all in one line.
>
> How can I make it happened? I'm using the <exec> task.
>
> Thanks.

Have you tried

(untested)

<exec executable="myexec>
  <arg value="-r" />
  <arg value="-a" />
</exec>
<exec executable="mv">
  <arg value="yourOutput" />
  <arg value="/dev/null" />
</exec>


Regards

  Henning

Mime
View raw message