ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23686] New: - <exec> doesn't work well with interactive programs
Date Wed, 08 Oct 2003 21:13:14 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23686>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23686

<exec> doesn't work well with interactive programs

           Summary: <exec> doesn't work well with interactive programs
           Product: Ant
           Version: 1.6Beta
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: erh+apache@nimenees.com


Using the exec task to execute an interactive program doesn't
seem to have its input stream set up correctly.  If I explicitly add
an input="/dev/tty" to the task it will stop and wait for input, but
the output won't show up until after the input is read.  Without the
input= the external program just gets eof on input.
Example, using external ftp program (yes, I know there's a ftp task):

<target name="foo">
   <exec executable="ftp" input="/dev/tty">
       <arg value="my.ftp.server"/>
   </exec>
</target>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message