-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How Can I read the taskExec output ? #382
Comments
I think the |
Hi Sweetchuck ,
|
It gives a different result on success and on fail. On success there is no information about the StdOut |
Well, so how can I read the StdOut when task end successfully ? See the above example, where I'd like to read the output of the "svn info" command. I know that a task has a logger object linked. Could it be useful to read the StdOut ? |
Do you need access to stdout for tasks that perform an operation? In your first example, you are using In the second example, a Robo taskExec is not a good way to obtain information about the system, e.g. when building your task objects. Instead, you should use the php Use taskExec for commands that change the state of the system. When implementing a task that needs to |
Thanks a lot Greg for clearing up the usage of "taskExec". |
Good point -- we should change that example. |
Update the alternative approach to using returned results to be more inline with the suggestions proposed here: consolidation#382 Using the Symfony Process component for returning simple system info.
I had that problem with current robo / openeuropa/task-runner, and the search engine directed me here. What made me succeed was
|
You are the MVP. That helped a lot. Thank you. |
Hi
some task, call a system command which produces some outputs.
Robo can prints out them on video but how can I store it in a var ?
For example
Can I extract the command output from the $result object ?
Thank you
Andrea
The text was updated successfully, but these errors were encountered: