Skip to content
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

MAD scripts must log command outputs #110

Closed

Conversation

baby-gnu
Copy link
Contributor

@baby-gnu baby-gnu commented Sep 2, 2016

Actually the “EXEC_LOG_ERR” variable is always empty since we redirect
stderr to stdout and then redirect stdout to /dev/null.

  • src/mad/ruby/scripts_common.rb (OpenNebula.exec_and_log): Do not
    redirect stdout to /dev/null.
  • src/mad/sh/scripts_common.sh (exec_and_log): Ditoo.
    (multiline_exec_and_log): Ditoo.
    (exec_and_set_error): Ditoo.
    (ssh_exec_and_log): Ditoo.
    (ssh_exec_and_log_stdin): Ditoo.
    (ssh_make_path): Ditoo.

Actually the “EXEC_LOG_ERR” variable is always empty since we redirect
stderr to stdout and then redirect stdout to /dev/null.

* src/mad/ruby/scripts_common.rb (OpenNebula.exec_and_log): Do not
  redirect stdout to /dev/null.

* src/mad/sh/scripts_common.sh (exec_and_log): Ditoo.
  (multiline_exec_and_log): Ditoo.
  (exec_and_set_error): Ditoo.
  (ssh_exec_and_log): Ditoo.
  (ssh_exec_and_log_stdin): Ditoo.
  (ssh_make_path): Ditoo.
@jmelis
Copy link
Contributor

jmelis commented Sep 6, 2016

Closing as per discussion in http://dev.opennebula.org/issues/4761

@jmelis jmelis closed this Sep 6, 2016
rsmontero pushed a commit that referenced this pull request Aug 12, 2020
rsmontero pushed a commit that referenced this pull request Sep 24, 2020
rsmontero pushed a commit that referenced this pull request Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants