<exec> problem

View: New views
2 Messages — Rating Filter:   Alert me  

<exec> problem

by Guy Catz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 > /dev/null" I get an error saying that the engine tried to run 3 lines -
myexec -r -a
>
/dev/null

and not all in one line.

How can I make it happened? I'm using the <exec> task.

Thanks.

Re: <exec> problem

by Henning Bredel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 > /dev/null" I get an error saying that
> the engine tried to run 3 lines - myexec -r -a
> >
> /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


signature.asc (196 bytes) Download Attachment