ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject how to exec shell script and output its log
Date Fri, 23 Mar 2018 10:49:51 GMT

I have some shell scripts and want to call them in service python scripts. 

I saw an example which use Execute to call shell script like Execute("/path/do_something").

But i notice that if the log level is INFO, the shekllscript own log can not be printed, only
change log 
level to DEBUG can show log. 

Is there a better way to call shell script and print its log? 

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message