ExecTask should return command output as a property (different from passthru)
|Reported by:||anonymous||Owned by:||mrook|
I'm writing a Web control panel for basic operating system commands, so I constantly need to parse up output of 'ls', 'grep', 'ifconfig' and the like. There is currently no way to return the output of an ExecTask. This is virtually unneeded for normal phing usage, but it is highly desirable for embedded phing applications.
I have supplied a patch to add a simple output property that closely mirrors the "returnProperty"
<exec command="/etc/init.d/httpd extendedstatus" outputProperty="command.out"/>
Then the application which starts the target can access the "command.out" property and deal with it.
Change History (7)
Changed 5 years ago by anonymous
comment:4 Changed 5 years ago by mrook
- Milestone set to 2.4.0
- Owner changed from hans to mrook
- Status changed from new to assigned
- Type changed from defect to enhancement