On Fri, Mar 23, 2018 at 11:45:32AM -0400, Di Li wrote: > and this is after you had tried the *logoutput *flag in Execute(... ?
Thanks very much! Also, i want to call script in the install step, if the script run failed, install still show success in the web, how does ambari judge success or fail? How can i make ambari know the failure of script mean install fail? > > On Fri, Mar 23, 2018 at 6:49 AM, <[email protected]> wrote: > > > Hi! > > > > 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? > > -- Best Regards Dai Xiang
