Skip to content

Enhance <exec> action with redirection to files #190

@end2endzone

Description

@end2endzone

Is your feature request related to a problem? Please describe.
The current way to allow redirection of stdout or stderr to a file is by running a shell command through cmd.exe and shell stream redirection.
For example, >output.log or 2>&1.

This is more of a workaround than an actual implementation.
An actual properly implemented feature would be more convenient and prevent many action to rely on cmd.exe shell stream redirection.

Describe the solution you'd like
The <exec> action could be enhanced with the following attribute:

<exec path="cmd.exe" wait="true" arguments="/k &quot;ffmpeg -version&quot;"
  stdout="${selection.path}.output.log"
  stderr="${selection.path}.err.log"/>

and to redirect stderr to stdout, you could do:

<exec path="cmd.exe" wait="true" arguments="/k &quot;ffmpeg -version&quot;"
  stdout="${selection.path}.output.log"
  stderr="2>&amp;1"/>

Describe alternatives you've considered
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions